This documentation is archived and is not being maintained.
IVsShell.LoadPackage Method
Visual Studio 2005
Triggers a VSPackage implementation DLL to be loaded into the environment.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)
int LoadPackage ( /** @attribute InAttribute() */ /** @ref */ Guid guidPackage, /** @attribute OutAttribute() */ /** @ref */ IVsPackage ppPackage )
JScript does not support passing value-type arguments by reference.
Parameters
- guidPackage
[in] Unique identifier of the VSPackage.
- ppPackage
[out, retval] Pointer to the IVsPackage interface of the VSPackage that has just been loaded.
Return Value
If 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.
Show: