Export (0) Print
Expand All

IVsShell.LoadPackage Method

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)

int LoadPackage (
	[InAttribute] ref Guid guidPackage,
	out IVsPackage ppPackage
)
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.

Community Additions

ADD
Show:
© 2014 Microsoft