We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

DataPackage Class

Visual Studio 2010

The package for a database project.

This API is not CLS-compliant. 

Namespace:  Microsoft.VisualStudio.Data.Schema.Package.UI
Assembly:  Microsoft.VisualStudio.Data.Schema.Package (in Microsoft.VisualStudio.Data.Schema.Package.dll)

[CLSCompliantAttribute(false)]
[DefaultRegistryRootAttribute("Software\Microsoft\VisualStudio\10.0")]
[ProvideLoadKeyAttribute("Professional", "2.0", "VSTS for Database Professionals", 
	"Microsoft Corporation", )]
[ProvideMenuResourceAttribute(, )]
[GuidAttribute("068E2583-0872-403B-AF4C-6C2A8F2D8C3E")]
[PackageRegistrationAttribute(UseManagedResourcesOnly = false)]
public sealed class DataPackage : ProjectPackage, 
	IOleCommandTarget

The DataPackage type exposes the following members.

  NameDescription
Public methodDataPackageInitializes a new instance of the DataPackage class.
Top

  NameDescription
Public propertyApplicationRegistryRoot (Inherited from Package.)
Public propertyStatic memberInstanceGets the single instance of the DataPackage.
Public propertyIsCmdLineBuildReturns true if this method is called during a command-line build.
Public propertyServiceProviderThis class and its members are reserved for internal use and are not intended to be used in your code. (Inherited from ProjectPackage.)
Public propertyUserDataPath (Inherited from Package.)
Public propertyUserLocalDataPath (Inherited from Package.)
Public propertyUserRegistryRoot (Inherited from Package.)
Public propertyZombied (Inherited from Package.)
Top

  NameDescription
Protected methodAddOptionKey (Inherited from Package.)
Public methodCreateInstance (Inherited from Package.)
Public methodCreateTool (Inherited from Package.)
Protected methodCreateToolWindow (Inherited from Package.)
Protected methodDisposeThis class and its members are reserved for internal use and are not intended to be used in your code. (Inherited from ProjectPackage.)
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodFailFastCall this method to quickly halt the application.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodFindToolWindow (Inherited from Package.)
Public methodFindWindowPane (Inherited from Package.)
Protected methodGetAutomationObject (Inherited from Package.)
Protected methodGetDialogPage (Inherited from Package.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetOutputPane (Inherited from Package.)
Public methodGetProviderLocale (Inherited from Package.)
Public methodStatic memberGetResourceString(Int32)Returns the resource string from the satellite assembly.
Public methodStatic memberGetResourceString(String)Returns the resource string from the satellite assembly.
Public methodGetService<TServiceType>(Type)This class and its members are reserved for internal use and are not intended to be used in your code. (Inherited from ProjectPackage.)
Public methodGetService<TServiceObject, TServiceType>()This class and its members are reserved for internal use and are not intended to be used in your code. (Inherited from ProjectPackage.)
Protected methodGetToolboxItemData (Inherited from Package.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodInitializeThis class and its members are reserved for internal use and are not intended to be used in your code. (Inherited from ProjectPackage.)
Protected methodInitializeSolutionListenersThis class and its members are reserved for internal use and are not intended to be used in your code. (Inherited from ProjectPackage.)
Public methodIsSqlScriptToolWindowVisibleChecks to see whether the Transact-SQL Script tool window is visible.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnLoadOptions (Inherited from Package.)
Protected methodOnSaveOptions (Inherited from Package.)
Protected methodParseToolboxResource(TextReader, ResourceManager) (Inherited from Package.)
Protected methodParseToolboxResource(TextReader, Guid) (Inherited from Package.)
Protected methodQueryClose (Inherited from Package.)
Public methodStatic memberQueryEditFiles(String[])Queries version control to determine whether the specified file can be checked out.
Public methodStatic memberQueryEditFiles(Boolean, String[])Ask Source Code Control (SCC) whether the file can be checked out. SCC will check out the file if it is allowed to do so. The user may be prompted, depending on settings, before checkout.
Protected methodRegisterEditorFactory (Inherited from Package.)
Public methodRegisterForIdleProcessingAdds a feature to idle processing.
Protected methodRegisterProjectFactory (Inherited from Package.)
Public methodRemoveFromIdleProcessingRemoves a feature from idle processing.
Public methodShowOptionPage (Inherited from Package.)
Public methodShowOrCreateSqlScriptToolWindowDisplays the Transact-SQL Script tool window, creating it if necessary.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodTryGetService<T>(Type)This class and its members are reserved for internal use and are not intended to be used in your code. (Inherited from ProjectPackage.)
Public methodTryGetService<TServiceObject, TServiceType>()This class and its members are reserved for internal use and are not intended to be used in your code. (Inherited from ProjectPackage.)
Top

  NameDescription
Protected eventToolboxInitialized (Inherited from Package.)
Protected eventToolboxUpgraded (Inherited from Package.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIOleCommandTarget.ExecExecutes the specified command or displays help for the command.
Explicit interface implemetationPrivate methodIOleCommandTarget.QueryStatusQueries the object for the status of one or more commands generated by user interface events.
Explicit interface implemetationPrivate methodIServiceContainer.AddService(Type, Object) (Inherited from Package.)
Explicit interface implemetationPrivate methodIServiceContainer.AddService(Type, ServiceCreatorCallback) (Inherited from Package.)
Explicit interface implemetationPrivate methodIServiceContainer.AddService(Type, Object, Boolean) (Inherited from Package.)
Explicit interface implemetationPrivate methodIServiceContainer.AddService(Type, ServiceCreatorCallback, Boolean) (Inherited from Package.)
Explicit interface implemetationPrivate methodIVsPackage.Close (Inherited from Package.)
Explicit interface implemetationPrivate methodIVsToolWindowFactory.CreateToolWindow (Inherited from Package.)
Explicit interface implemetationPrivate methodIVsUserSettings.ExportSettings (Inherited from Package.)
Explicit interface implemetationPrivate methodIVsPackage.GetAutomationObject (Inherited from Package.)
Explicit interface implemetationPrivate methodIVsToolboxItemProvider.GetItemContent (Inherited from Package.)
Explicit interface implemetationPrivate methodIVsPackage.GetPropertyPage (Inherited from Package.)
Explicit interface implemetationPrivate methodIServiceProvider.GetService (Inherited from Package.)
Explicit interface implemetationPrivate methodIVsUserSettings.ImportSettings (Inherited from Package.)
Explicit interface implemetationPrivate methodIVsPersistSolutionOpts.LoadUserOptions (Inherited from Package.)
Explicit interface implemetationPrivate methodIVsUserSettingsMigration.MigrateSettings (Inherited from Package.)
Explicit interface implemetationPrivate methodIVsPackage.QueryClose (Inherited from Package.)
Explicit interface implemetationPrivate methodIServiceProvider.QueryService (Inherited from Package.)
Explicit interface implemetationPrivate methodIVsPersistSolutionOpts.ReadUserOptions (Inherited from Package.)
Explicit interface implemetationPrivate methodIServiceContainer.RemoveService(Type) (Inherited from Package.)
Explicit interface implemetationPrivate methodIServiceContainer.RemoveService(Type, Boolean) (Inherited from Package.)
Explicit interface implemetationPrivate methodIVsPackage.ResetDefaults (Inherited from Package.)
Explicit interface implemetationPrivate methodIVsPersistSolutionOpts.SaveUserOptions (Inherited from Package.)
Explicit interface implemetationPrivate methodIVsPackage.SetSite (Inherited from Package.)
Explicit interface implemetationPrivate methodIVsPersistSolutionOpts.WriteUserOptions (Inherited from Package.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: