IVsPackage Interface
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
[System.Runtime.InteropServices.Guid("D4F3F4B1-E900-4E51-ADB3-D532348F83CB")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsPackage
[<System.Runtime.InteropServices.Guid("D4F3F4B1-E900-4E51-ADB3-D532348F83CB")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsPackage = interface
[<System.Runtime.InteropServices.Guid("D4F3F4B1-E900-4E51-ADB3-D532348F83CB")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsPackage = interface
Public Interface IVsPackage
- Derived
- Attributes
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.
Implement IVsPackage
whenever you initialize a VSPackage.
If a package needs to block shutdown of the IDE it should implement IVsPackage2.
Close() |
Closes the VSPackage, releases cached interface pointers, and unadvises event sinks. |
Create |
Enables the environment to create on-demand tool windows that are implemented by VSPackages. |
Get |
Enables a VSPackage to participate in the DTE automation object model. |
Get |
Proffers access to the Tools menu Options and the property pages of the Customize Toolbox dialog boxes. |
Query |
Enables a VSPackage that requires user intervention to abort the shutdown process. |
Reset |
Resets Toolbox defaults. |
Set |
Initializes a VSPackage with a back pointer to the environment. |
Product | Versions |
---|---|
Visual Studio SDK | 2015, 2017, 2019, 2022 |