DataPackage Class

This API is not CLS-compliant. 

Inheritance Hierarchy

System..::..Object
  Package
    Microsoft.VisualStudio.Data.Tools.Package.Project.Internal..::..ProjectPackage
      Microsoft.VisualStudio.Data.Tools.Package.UI..::..DataPackage

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

Syntax

'Declaration
<GuidAttribute("00FEE386-5F9F-4577-99F4-F327FAFC0FB9")> _
<CLSCompliantAttribute(False)> _
<ProvideMenuResourceAttribute(, )> _
<ProvideToolWindowAttribute(GetType(DataToolsOperationsToolWindow), Window := "{34E76E81-EE4A-11D0-AE2E-00A0C90FFFC3}",  _
    Style := VsDockStyle.Tabbed)> _
<ProvideEditorFactoryAttribute(GetType(QueryResultsEditorFactory), , TrustLevel := __VSEDITORTRUSTLEVEL.ETL_AlwaysTrusted)> _
<ProvideEditorLogicalViewAttribute(GetType(QueryResultsEditorFactory), "{7651a703-06e5-11d1-8ebd-00a0c90f26ea}")> _
<ProvideEditorFactoryAttribute(GetType(SqlEditorSelector), , TrustLevel := __VSEDITORTRUSTLEVEL.ETL_AlwaysTrusted)> _
<ProvideServiceAttribute(GetType(SModelBusService))> _
<ProvideLoadKeyAttribute("Standard", "1.0", "SqlStudio Package", "Microsoft Corporation",  _
    )> _
<PackageRegistrationAttribute(UseManagedResourcesOnly := True)> _
Public NotInheritable Class DataPackage _
    Inherits ProjectPackage _
    Implements IServiceProvider, IOleCommandTarget
'Usage
Dim instance As DataPackage
[GuidAttribute("00FEE386-5F9F-4577-99F4-F327FAFC0FB9")]
[CLSCompliantAttribute(false)]
[ProvideMenuResourceAttribute(, )]
[ProvideToolWindowAttribute(typeof(DataToolsOperationsToolWindow), Window = "{34E76E81-EE4A-11D0-AE2E-00A0C90FFFC3}", 
    Style = VsDockStyle.Tabbed)]
[ProvideEditorFactoryAttribute(typeof(QueryResultsEditorFactory), , TrustLevel = __VSEDITORTRUSTLEVEL.ETL_AlwaysTrusted)]
[ProvideEditorLogicalViewAttribute(typeof(QueryResultsEditorFactory), "{7651a703-06e5-11d1-8ebd-00a0c90f26ea}")]
[ProvideEditorFactoryAttribute(typeof(SqlEditorSelector), , TrustLevel = __VSEDITORTRUSTLEVEL.ETL_AlwaysTrusted)]
[ProvideServiceAttribute(typeof(SModelBusService))]
[ProvideLoadKeyAttribute("Standard", "1.0", "SqlStudio Package", "Microsoft Corporation", 
    )]
[PackageRegistrationAttribute(UseManagedResourcesOnly = true)]
public sealed class DataPackage : ProjectPackage, 
    IServiceProvider, IOleCommandTarget
[GuidAttribute(L"00FEE386-5F9F-4577-99F4-F327FAFC0FB9")]
[CLSCompliantAttribute(false)]
[ProvideMenuResourceAttribute(, )]
[ProvideToolWindowAttribute(typeof(DataToolsOperationsToolWindow), Window = L"{34E76E81-EE4A-11D0-AE2E-00A0C90FFFC3}", 
    Style = VsDockStyle::Tabbed)]
[ProvideEditorFactoryAttribute(typeof(QueryResultsEditorFactory), , TrustLevel = __VSEDITORTRUSTLEVEL::ETL_AlwaysTrusted)]
[ProvideEditorLogicalViewAttribute(typeof(QueryResultsEditorFactory), L"{7651a703-06e5-11d1-8ebd-00a0c90f26ea}")]
[ProvideEditorFactoryAttribute(typeof(SqlEditorSelector), , TrustLevel = __VSEDITORTRUSTLEVEL::ETL_AlwaysTrusted)]
[ProvideServiceAttribute(typeof(SModelBusService))]
[ProvideLoadKeyAttribute(L"Standard", L"1.0", L"SqlStudio Package", L"Microsoft Corporation", 
    )]
[PackageRegistrationAttribute(UseManagedResourcesOnly = true)]
public ref class DataPackage sealed : public ProjectPackage, 
    IServiceProvider, IOleCommandTarget
[<SealedAttribute>]
[<GuidAttribute("00FEE386-5F9F-4577-99F4-F327FAFC0FB9")>]
[<CLSCompliantAttribute(false)>]
[<ProvideMenuResourceAttribute(, )>]
[<ProvideToolWindowAttribute(typeof(DataToolsOperationsToolWindow), Window = "{34E76E81-EE4A-11D0-AE2E-00A0C90FFFC3}", 
    Style = VsDockStyle.Tabbed)>]
[<ProvideEditorFactoryAttribute(typeof(QueryResultsEditorFactory), , TrustLevel = __VSEDITORTRUSTLEVEL.ETL_AlwaysTrusted)>]
[<ProvideEditorLogicalViewAttribute(typeof(QueryResultsEditorFactory), "{7651a703-06e5-11d1-8ebd-00a0c90f26ea}")>]
[<ProvideEditorFactoryAttribute(typeof(SqlEditorSelector), , TrustLevel = __VSEDITORTRUSTLEVEL.ETL_AlwaysTrusted)>]
[<ProvideServiceAttribute(typeof(SModelBusService))>]
[<ProvideLoadKeyAttribute("Standard", "1.0", "SqlStudio Package", "Microsoft Corporation", 
    )>]
[<PackageRegistrationAttribute(UseManagedResourcesOnly = true)>]
type DataPackage =  
    class
        inherit ProjectPackage
        interface IServiceProvider
        interface IOleCommandTarget
    end
public final class DataPackage extends ProjectPackage implements IServiceProvider, IOleCommandTarget

The DataPackage type exposes the following members.

Constructors

  Name Description
Public method DataPackage Initializes an instance of a DataPackage

Top

Properties

  Name Description
Public property ApplicationRegistryRoot (Inherited from Package.)
Public propertyStatic member Instance The single instance of the DataPackage
Public property IsCmdLineBuild Returns true if we have a cmd line build.
Public property ServiceProvider Return package as a IServiceProvider. (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.)
Public methodStatic member DemandLoadPackage Loads the package identified by the argument guid.
Protected method Dispose (Inherited from ProjectPackage.)
Public method Equals (Inherited from Object.)
Public method FailFast Call this to failfast the application
Protected method Finalize (Inherited from Object.)
Public method FindToolWindow(Guid) Finds a toolwindow by the guid
Public method FindToolWindow(Type, Int32, Boolean) (Inherited from Package.)
Public method FindWindowPane (Inherited from Package.)
Protected method GetAutomationObject (Inherited from Package.)
Protected method GetDialogPage (Inherited from Package.)
Public method GetHashCode (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 our satellite assembly
Public methodStatic member GetResourceString(String) Returns the resource string from our satellite assembly
Public method GetService< (Of < <' (TServiceType> ) > > )(Type) Get service object. (Inherited from ProjectPackage.)
Public method GetService< (Of < <' (TServiceObject, TServiceType> ) > > )() () () () Get service object. (Inherited from ProjectPackage.)
Protected method GetToolboxItemData (Inherited from Package.)
Public method GetType (Inherited from Object.)
Protected method Initialize (Inherited from ProjectPackage.)
Protected method InitializeSolutionListeners (Inherited from ProjectPackage.)
Protected method MemberwiseClone (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> [] () [] []) Ask SCC if file can be checked out. SCC will check the file out if allowed to do so. The user may be prompted (depending on settings) before checkout.
Public methodStatic member QueryEditFiles(Boolean%, array<String> [] () [] []) Ask SCC if file can be checked out. SCC will check the file out if allowed to do so. The user may be prompted (depending on settings) before checkout.
Public methodStatic member QueryEditFiles(Boolean%, UInt32%, array<String> [] () [] []) Ask SCC if file can be checked out. SCC will check the file out if allowed to do so. The user may be prompted (depending on settings) before checkout.
Protected method RegisterEditorFactory (Inherited from Package.)
Protected method RegisterProjectFactory (Inherited from Package.)
Public method ShowOptionPage (Inherited from Package.)
Public methodStatic member ThrowOnFailure
Public method ToString (Inherited from Object.)
Public method TryGetService< (Of < <' (T> ) > > )(Type) Get service object. (Inherited from ProjectPackage.)
Public method TryGetService< (Of < <' (TServiceObject, TServiceType> ) > > )() () () () Get service object. (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 IOleCommandTargetExec
Explicit interface implemetationPrivate method IServiceProviderQueryService
Explicit interface implemetationPrivate method IOleCommandTargetQueryStatus
Explicit interface implemetationPrivate method System#ComponentModel#Design#IServiceContainer#AddService(Type, Object) (Inherited from Package.)
Explicit interface implemetationPrivate method System#ComponentModel#Design#IServiceContainer#AddService(Type, ServiceCreatorCallback) (Inherited from Package.)
Explicit interface implemetationPrivate method System#ComponentModel#Design#IServiceContainer#AddService(Type, Object, Boolean) (Inherited from Package.)
Explicit interface implemetationPrivate method System#ComponentModel#Design#IServiceContainer#AddService(Type, ServiceCreatorCallback, Boolean) (Inherited from Package.)
Explicit interface implemetationPrivate method Microsoft#VisualStudio#Shell#Interop#IVsPackage#Close (Inherited from Package.)
Explicit interface implemetationPrivate method Microsoft#VisualStudio#Shell#Interop#IVsToolWindowFactory#CreateToolWindow (Inherited from Package.)
Explicit interface implemetationPrivate method Microsoft#VisualStudio#Shell#Interop#IVsUserSettings#ExportSettings (Inherited from Package.)
Explicit interface implemetationPrivate method Microsoft#VisualStudio#Shell#Interop#IVsPackage#GetAutomationObject (Inherited from Package.)
Explicit interface implemetationPrivate method Microsoft#VisualStudio#Shell#Interop#IVsToolboxItemProvider#GetItemContent (Inherited from Package.)
Explicit interface implemetationPrivate method Microsoft#VisualStudio#Shell#Interop#IVsPackage#GetPropertyPage (Inherited from Package.)
Explicit interface implemetationPrivate method System#IServiceProvider#GetService (Inherited from Package.)
Explicit interface implemetationPrivate method Microsoft#VisualStudio#Shell#Interop#IVsUserSettings#ImportSettings (Inherited from Package.)
Explicit interface implemetationPrivate method Microsoft#VisualStudio#Shell#Interop#IVsPersistSolutionOpts#LoadUserOptions (Inherited from Package.)
Explicit interface implemetationPrivate method Microsoft#VisualStudio#Shell#Interop#IVsUserSettingsMigration#MigrateSettings (Inherited from Package.)
Explicit interface implemetationPrivate method Microsoft#VisualStudio#Shell#Interop#IVsPackage#QueryClose (Inherited from Package.)
Explicit interface implemetationPrivate method Microsoft#VisualStudio#Shell#Interop#IVsPersistSolutionOpts#ReadUserOptions (Inherited from Package.)
Explicit interface implemetationPrivate method System#ComponentModel#Design#IServiceContainer#RemoveService(Type) (Inherited from Package.)
Explicit interface implemetationPrivate method System#ComponentModel#Design#IServiceContainer#RemoveService(Type, Boolean) (Inherited from Package.)
Explicit interface implemetationPrivate method Microsoft#VisualStudio#Shell#Interop#IVsPackage#ResetDefaults (Inherited from Package.)
Explicit interface implemetationPrivate method Microsoft#VisualStudio#Shell#Interop#IVsPersistSolutionOpts#SaveUserOptions (Inherited from Package.)
Explicit interface implemetationPrivate method Microsoft#VisualStudio#Shell#Interop#IVsPackage#SetSite (Inherited from Package.)
Explicit interface implemetationPrivate method Microsoft#VisualStudio#Shell#Interop#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.Tools.Package.UI Namespace