IVsShell.LoadPackage(Guid, IVsPackage) IVsShell.LoadPackage(Guid, IVsPackage) IVsShell.LoadPackage(Guid, IVsPackage) Method


Triggers a VSPackage implementation DLL to be loaded into the environment.

public int LoadPackage (ref Guid guidPackage, out Microsoft.VisualStudio.Shell.Interop.IVsPackage ppPackage);
abstract member LoadPackage :  *  -> int
Public Function LoadPackage (ByRef guidPackage As Guid, ByRef ppPackage As IVsPackage) As Integer
Guid Guid Guid

[in] Unique identifier of the VSPackage.

IVsPackage IVsPackage IVsPackage

[out, retval] Pointer to the IVsPackage interface of the VSPackage that has just been loaded.


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.

Applies to