特定于 SQL Server 的数据库包。
此 API 不兼容 CLS。
继承层次结构
System.Object
  Microsoft.VisualStudio.Shell.Package
    Microsoft.VisualStudio.Data.Schema.Package.Project.Internal.ProjectPackage
      Microsoft.VisualStudio.Data.Schema.Package.Sql.UI.SqlPackage
命名空间:  Microsoft.VisualStudio.Data.Schema.Package.Sql.UI
程序集:  Microsoft.VisualStudio.Data.Schema.Package.Sql(在 Microsoft.VisualStudio.Data.Schema.Package.Sql.dll 中)
语法
声明
<ProvideMenuResourceAttribute(, )> _
<ProvideLoadKeyAttribute("Professional", "2.0", "VSTS for Database Professionals Sql Server",  _
    "Microsoft Corporation", )> _
<ComVisibleAttribute(True)> _
<CLSCompliantAttribute(False)> _
<GuidAttribute("481A3758-A6D0-43E0-B1B8-4428BE962F8E")> _
<PackageRegistrationAttribute(UseManagedResourcesOnly := False)> _
<DefaultRegistryRootAttribute("Software\Microsoft\VisualStudio\10.0")> _
Public NotInheritable Class SqlPackage _
    Inherits ProjectPackage _
    Implements IOleCommandTarget
[ProvideMenuResourceAttribute(, )]
[ProvideLoadKeyAttribute("Professional", "2.0", "VSTS for Database Professionals Sql Server", 
    "Microsoft Corporation", )]
[ComVisibleAttribute(true)]
[CLSCompliantAttribute(false)]
[GuidAttribute("481A3758-A6D0-43E0-B1B8-4428BE962F8E")]
[PackageRegistrationAttribute(UseManagedResourcesOnly = false)]
[DefaultRegistryRootAttribute("Software\Microsoft\VisualStudio\10.0")]
public sealed class SqlPackage : ProjectPackage, 
    IOleCommandTarget
[ProvideMenuResourceAttribute(, )]
[ProvideLoadKeyAttribute(L"Professional", L"2.0", L"VSTS for Database Professionals Sql Server", 
    L"Microsoft Corporation", )]
[ComVisibleAttribute(true)]
[CLSCompliantAttribute(false)]
[GuidAttribute(L"481A3758-A6D0-43E0-B1B8-4428BE962F8E")]
[PackageRegistrationAttribute(UseManagedResourcesOnly = false)]
[DefaultRegistryRootAttribute(L"Software\Microsoft\VisualStudio\10.0")]
public ref class SqlPackage sealed : public ProjectPackage, 
    IOleCommandTarget
[<Sealed>]
[<ProvideMenuResourceAttribute(, )>]
[<ProvideLoadKeyAttribute("Professional", "2.0", "VSTS for Database Professionals Sql Server", 
    "Microsoft Corporation", )>]
[<ComVisibleAttribute(true)>]
[<CLSCompliantAttribute(false)>]
[<GuidAttribute("481A3758-A6D0-43E0-B1B8-4428BE962F8E")>]
[<PackageRegistrationAttribute(UseManagedResourcesOnly = false)>]
[<DefaultRegistryRootAttribute("Software\Microsoft\VisualStudio\10.0")>]
type SqlPackage =  
    class
        inherit ProjectPackage
        interface IOleCommandTarget
    end
public final class SqlPackage extends ProjectPackage implements IOleCommandTarget
SqlPackage 类型公开以下成员。
构造函数
| 名称 | 说明 | |
|---|---|---|
| .gif) | SqlPackage | 初始化 SqlPackage 类的新实例。 | 
页首
属性
| 名称 | 说明 | |
|---|---|---|
| .gif) | ApplicationRegistryRoot | (继承自 Package。) | 
| .gif) | ServiceProvider | 该类及其成员保留供内部使用,不应在代码中使用。 (继承自 ProjectPackage。) | 
| .gif) | UserDataPath | (继承自 Package。) | 
| .gif) | UserLocalDataPath | (继承自 Package。) | 
| .gif) | UserRegistryRoot | (继承自 Package。) | 
| .gif) | Zombied | (继承自 Package。) | 
页首
方法
页首
事件
| 名称 | 说明 | |
|---|---|---|
| .gif) | ToolboxInitialized | (继承自 Package。) | 
| .gif) | ToolboxUpgraded | (继承自 Package。) | 
页首
显式接口实现
| 名称 | 说明 | |
|---|---|---|
| .gif) .gif) | IOleCommandTarget.Exec | |
| .gif) .gif) | IServiceContainer.AddService(Type, Object) | (继承自 Package。) | 
| .gif) .gif) | IServiceContainer.AddService(Type, ServiceCreatorCallback) | (继承自 Package。) | 
| .gif) .gif) | IServiceContainer.AddService(Type, Object, Boolean) | (继承自 Package。) | 
| .gif) .gif) | IServiceContainer.AddService(Type, ServiceCreatorCallback, Boolean) | (继承自 Package。) | 
| .gif) .gif) | IVsPackage.Close | (继承自 Package。) | 
| .gif) .gif) | IVsToolWindowFactory.CreateToolWindow | (继承自 Package。) | 
| .gif) .gif) | IVsUserSettings.ExportSettings | (继承自 Package。) | 
| .gif) .gif) | IVsPackage.GetAutomationObject | (继承自 Package。) | 
| .gif) .gif) | IVsToolboxItemProvider.GetItemContent | (继承自 Package。) | 
| .gif) .gif) | IVsPackage.GetPropertyPage | (继承自 Package。) | 
| .gif) .gif) | IServiceProvider.GetService | (继承自 Package。) | 
| .gif) .gif) | IVsUserSettings.ImportSettings | (继承自 Package。) | 
| .gif) .gif) | IVsPersistSolutionOpts.LoadUserOptions | (继承自 Package。) | 
| .gif) .gif) | IVsUserSettingsMigration.MigrateSettings | (继承自 Package。) | 
| .gif) .gif) | IVsPackage.QueryClose | (继承自 Package。) | 
| .gif) .gif) | IServiceProvider.QueryService | (继承自 Package。) | 
| .gif) .gif) | IOleCommandTarget.QueryStatus | (继承自 Package。) | 
| .gif) .gif) | IVsPersistSolutionOpts.ReadUserOptions | (继承自 Package。) | 
| .gif) .gif) | IServiceContainer.RemoveService(Type) | (继承自 Package。) | 
| .gif) .gif) | IServiceContainer.RemoveService(Type, Boolean) | (继承自 Package。) | 
| .gif) .gif) | IVsPackage.ResetDefaults | (继承自 Package。) | 
| .gif) .gif) | IVsPersistSolutionOpts.SaveUserOptions | (继承自 Package。) | 
| .gif) .gif) | IVsPackage.SetSite | (继承自 Package。) | 
| .gif) .gif) | IVsPersistSolutionOpts.WriteUserOptions | (继承自 Package。) | 
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。
.gif)