This documentation is archived and is not being maintained.
IVsShell.LoadPackage Method
Visual Studio 2010
Triggers a VSPackage implementation DLL to be loaded into the environment.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- guidPackage
- Type: System.Guid
[in] Unique identifier of the VSPackage.
- ppPackage
- Type: Microsoft.VisualStudio.Shell.Interop.IVsPackage
[out, retval] Pointer to the IVsPackage interface of the VSPackage that has just been loaded.
Return Value
Type: System.Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
COM Signature
From vsshell.idl:
HRESULT IVsShell::LoadPackage(
[in] REFGUID guidPackage,
[out, retval] IVsPackage **ppPackage
);
This method is called internally, instead of directly by the user. The VSPackage is not registered in the global portion of the registry; it is registered relative to the Microsoft Visual Studio hierarchy in the registry. For more information, see ILocalRegistry2.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Show: