IVsPackage IVsPackage IVsPackage IVsPackage IVsPackage IVsPackage Interface

Definition

Initializes a VSPackage in the environment and makes its services available to the environment.

public interface class IVsPackage
public interface class IVsPackage
__interface IVsPackage
[System.Runtime.InteropServices.Guid("D4F3F4B1-E900-4E51-ADB3-D532348F83CB")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsPackage
type IVsPackage = interface
Public Interface IVsPackage
Derived
Attributes

Remarks

This interface must be implemented on all VSPackage classes. Visual Studio uses this interface to call on the VSPackage for services it might provide. Most extensions start out by loading a VSPackage, which is sited to the environment. The calling VSPackage is handed a pointer to a service provider.

Notes to Implementers

Implement IVsPackage whenever you initialize a VSPackage.

If a package needs to block shutdown of the IDE it should implement IVsPackage2.

Methods

Close() Close() Close() Close() Close() Close()

Closes the VSPackage, releases cached interface pointers, and unadvises event sinks.

CreateTool(Guid) CreateTool(Guid) CreateTool(Guid) CreateTool(Guid) CreateTool(Guid) CreateTool(Guid)

Enables the environment to create on-demand tool windows that are implemented by VSPackages.

GetAutomationObject(String, Object) GetAutomationObject(String, Object) GetAutomationObject(String, Object) GetAutomationObject(String, Object) GetAutomationObject(String, Object) GetAutomationObject(String, Object)

Enables a VSPackage to participate in the DTE automation object model.

GetPropertyPage(Guid, VSPROPSHEETPAGE[]) GetPropertyPage(Guid, VSPROPSHEETPAGE[]) GetPropertyPage(Guid, VSPROPSHEETPAGE[]) GetPropertyPage(Guid, VSPROPSHEETPAGE[]) GetPropertyPage(Guid, VSPROPSHEETPAGE[]) GetPropertyPage(Guid, VSPROPSHEETPAGE[])

Proffers access to the Tools menu Options and the property pages of the Customize Toolbox dialog boxes.

QueryClose(Int32) QueryClose(Int32) QueryClose(Int32) QueryClose(Int32) QueryClose(Int32) QueryClose(Int32)

Enables a VSPackage that requires user intervention to abort the shutdown process.

ResetDefaults(UInt32) ResetDefaults(UInt32) ResetDefaults(UInt32) ResetDefaults(UInt32) ResetDefaults(UInt32) ResetDefaults(UInt32)

Resets Toolbox defaults.

SetSite(IServiceProvider) SetSite(IServiceProvider) SetSite(IServiceProvider) SetSite(IServiceProvider) SetSite(IServiceProvider) SetSite(IServiceProvider)

Initializes a VSPackage with a back pointer to the environment.

Applies to