DataPackage Class

The package for a database project.

This API is not CLS-compliant. 

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Shell.Package
    Microsoft.VisualStudio.Data.Schema.Package.Project.Internal.ProjectPackage
      Microsoft.VisualStudio.Data.Schema.Package.UI.DataPackage

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

Syntax

'Declaration
<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 NotInheritable Class DataPackage _
    Inherits ProjectPackage _
    Implements IOleCommandTarget
[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
[CLSCompliantAttribute(false)]
[DefaultRegistryRootAttribute(L"Software\Microsoft\VisualStudio\10.0")]
[ProvideLoadKeyAttribute(L"Professional", L"2.0", L"VSTS for Database Professionals", 
    L"Microsoft Corporation", )]
[ProvideMenuResourceAttribute(, )]
[GuidAttribute(L"068E2583-0872-403B-AF4C-6C2A8F2D8C3E")]
[PackageRegistrationAttribute(UseManagedResourcesOnly = false)]
public ref class DataPackage sealed : public ProjectPackage, 
    IOleCommandTarget
[<Sealed>]
[<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)>]
type DataPackage =  
    class
        inherit ProjectPackage
        interface IOleCommandTarget
    end
public final class DataPackage extends ProjectPackage implements IOleCommandTarget

The DataPackage type exposes the following members.

Constructors

  Name Description
Public method DataPackage Initializes a new instance of the DataPackage class.

Top

Properties

  Name Description
Public property ApplicationRegistryRoot (Inherited from Package.)
Public propertyStatic member Instance Gets the single instance of the DataPackage.
Public property IsCmdLineBuild Returns true if this method is called during a command-line build.
Public property ServiceProvider This class and its members are reserved for internal use and are not intended to be used in your code. (Inherited from ProjectPackage.)
Public property UserDataPath (Inherited from Package.)
Public property UserLocalDataPath (Inherited from Package.)
Public property UserRegistryRoot (Inherited from Package.)
Public property Zombied (Inherited from Package.)

Top

Methods

  Name Description
Protected method AddOptionKey (Inherited from Package.)
Public method CreateInstance (Inherited from Package.)
Public method CreateTool (Inherited from Package.)
Protected method CreateToolWindow (Inherited from Package.)
Protected method Dispose This class and its members are reserved for internal use and are not intended to be used in your code. (Inherited from ProjectPackage.)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method FailFast Call this method to quickly halt the application.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method FindToolWindow (Inherited from Package.)
Public method FindWindowPane (Inherited from Package.)
Protected method GetAutomationObject (Inherited from Package.)
Protected method GetDialogPage (Inherited from Package.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetOutputPane (Inherited from Package.)
Public method GetProviderLocale (Inherited from Package.)
Public methodStatic member GetResourceString(Int32) Returns the resource string from the satellite assembly.
Public methodStatic member GetResourceString(String) Returns the resource string from the satellite assembly.
Public method GetService<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 method GetService<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 method GetToolboxItemData (Inherited from Package.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method Initialize This class and its members are reserved for internal use and are not intended to be used in your code. (Inherited from ProjectPackage.)
Protected method InitializeSolutionListeners This class and its members are reserved for internal use and are not intended to be used in your code. (Inherited from ProjectPackage.)
Public method IsSqlScriptToolWindowVisible Checks to see whether the Transact-SQL Script tool window is visible.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnLoadOptions (Inherited from Package.)
Protected method OnSaveOptions (Inherited from Package.)
Protected method ParseToolboxResource(TextReader, ResourceManager) (Inherited from Package.)
Protected method ParseToolboxResource(TextReader, Guid) (Inherited from Package.)
Protected method QueryClose (Inherited from Package.)
Public methodStatic member QueryEditFiles(array<String[]) Queries version control to determine whether the specified file can be checked out.
Public methodStatic member QueryEditFiles(Boolean%, array<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 method RegisterEditorFactory (Inherited from Package.)
Public method RegisterForIdleProcessing Adds a feature to idle processing.
Protected method RegisterProjectFactory (Inherited from Package.)
Public method RemoveFromIdleProcessing Removes a feature from idle processing.
Public method ShowOptionPage (Inherited from Package.)
Public method ShowOrCreateSqlScriptToolWindow Displays the Transact-SQL Script tool window, creating it if necessary.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryGetService<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 method TryGetService<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

Events

  Name Description
Protected event ToolboxInitialized (Inherited from Package.)
Protected event ToolboxUpgraded (Inherited from Package.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IOleCommandTarget.Exec Executes the specified command or displays help for the command.
Explicit interface implemetationPrivate method IOleCommandTarget.QueryStatus Queries the object for the status of one or more commands generated by user interface events.
Explicit interface implemetationPrivate method IServiceContainer.AddService(Type, Object) (Inherited from Package.)
Explicit interface implemetationPrivate method IServiceContainer.AddService(Type, ServiceCreatorCallback) (Inherited from Package.)
Explicit interface implemetationPrivate method IServiceContainer.AddService(Type, Object, Boolean) (Inherited from Package.)
Explicit interface implemetationPrivate method IServiceContainer.AddService(Type, ServiceCreatorCallback, Boolean) (Inherited from Package.)
Explicit interface implemetationPrivate method IVsPackage.Close (Inherited from Package.)
Explicit interface implemetationPrivate method IVsToolWindowFactory.CreateToolWindow (Inherited from Package.)
Explicit interface implemetationPrivate method IVsUserSettings.ExportSettings (Inherited from Package.)
Explicit interface implemetationPrivate method IVsPackage.GetAutomationObject (Inherited from Package.)
Explicit interface implemetationPrivate method IVsToolboxItemProvider.GetItemContent (Inherited from Package.)
Explicit interface implemetationPrivate method IVsPackage.GetPropertyPage (Inherited from Package.)
Explicit interface implemetationPrivate method IServiceProvider.GetService (Inherited from Package.)
Explicit interface implemetationPrivate method IVsUserSettings.ImportSettings (Inherited from Package.)
Explicit interface implemetationPrivate method IVsPersistSolutionOpts.LoadUserOptions (Inherited from Package.)
Explicit interface implemetationPrivate method IVsUserSettingsMigration.MigrateSettings (Inherited from Package.)
Explicit interface implemetationPrivate method IVsPackage.QueryClose (Inherited from Package.)
Explicit interface implemetationPrivate method IServiceProvider.QueryService (Inherited from Package.)
Explicit interface implemetationPrivate method IVsPersistSolutionOpts.ReadUserOptions (Inherited from Package.)
Explicit interface implemetationPrivate method IServiceContainer.RemoveService(Type) (Inherited from Package.)
Explicit interface implemetationPrivate method IServiceContainer.RemoveService(Type, Boolean) (Inherited from Package.)
Explicit interface implemetationPrivate method IVsPackage.ResetDefaults (Inherited from Package.)
Explicit interface implemetationPrivate method IVsPersistSolutionOpts.SaveUserOptions (Inherited from Package.)
Explicit interface implemetationPrivate method IVsPackage.SetSite (Inherited from Package.)
Explicit interface implemetationPrivate method IVsPersistSolutionOpts.WriteUserOptions (Inherited from Package.)

Top

Thread Safety

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

See Also

Reference

Microsoft.VisualStudio.Data.Schema.Package.UI Namespace