特定于 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 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
SqlPackage | 初始化 SqlPackage 类的新实例。 |
页首
属性
名称 | 说明 | |
---|---|---|
![]() |
ApplicationRegistryRoot | (继承自 Package。) |
![]() |
ServiceProvider | 该类及其成员保留供内部使用,不应在代码中使用。 (继承自 ProjectPackage。) |
![]() |
UserDataPath | (继承自 Package。) |
![]() |
UserLocalDataPath | (继承自 Package。) |
![]() |
UserRegistryRoot | (继承自 Package。) |
![]() |
Zombied | (继承自 Package。) |
页首
方法
页首
事件
名称 | 说明 | |
---|---|---|
![]() |
ToolboxInitialized | (继承自 Package。) |
![]() |
ToolboxUpgraded | (继承自 Package。) |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
![]() ![]() |
IOleCommandTarget.Exec | |
![]() ![]() |
IServiceContainer.AddService(Type, Object) | (继承自 Package。) |
![]() ![]() |
IServiceContainer.AddService(Type, ServiceCreatorCallback) | (继承自 Package。) |
![]() ![]() |
IServiceContainer.AddService(Type, Object, Boolean) | (继承自 Package。) |
![]() ![]() |
IServiceContainer.AddService(Type, ServiceCreatorCallback, Boolean) | (继承自 Package。) |
![]() ![]() |
IVsPackage.Close | (继承自 Package。) |
![]() ![]() |
IVsToolWindowFactory.CreateToolWindow | (继承自 Package。) |
![]() ![]() |
IVsUserSettings.ExportSettings | (继承自 Package。) |
![]() ![]() |
IVsPackage.GetAutomationObject | (继承自 Package。) |
![]() ![]() |
IVsToolboxItemProvider.GetItemContent | (继承自 Package。) |
![]() ![]() |
IVsPackage.GetPropertyPage | (继承自 Package。) |
![]() ![]() |
IServiceProvider.GetService | (继承自 Package。) |
![]() ![]() |
IVsUserSettings.ImportSettings | (继承自 Package。) |
![]() ![]() |
IVsPersistSolutionOpts.LoadUserOptions | (继承自 Package。) |
![]() ![]() |
IVsUserSettingsMigration.MigrateSettings | (继承自 Package。) |
![]() ![]() |
IVsPackage.QueryClose | (继承自 Package。) |
![]() ![]() |
IServiceProvider.QueryService | (继承自 Package。) |
![]() ![]() |
IOleCommandTarget.QueryStatus | (继承自 Package。) |
![]() ![]() |
IVsPersistSolutionOpts.ReadUserOptions | (继承自 Package。) |
![]() ![]() |
IServiceContainer.RemoveService(Type) | (继承自 Package。) |
![]() ![]() |
IServiceContainer.RemoveService(Type, Boolean) | (继承自 Package。) |
![]() ![]() |
IVsPackage.ResetDefaults | (继承自 Package。) |
![]() ![]() |
IVsPersistSolutionOpts.SaveUserOptions | (继承自 Package。) |
![]() ![]() |
IVsPackage.SetSite | (继承自 Package。) |
![]() ![]() |
IVsPersistSolutionOpts.WriteUserOptions | (继承自 Package。) |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。