次の方法で共有


IVsShell.LoadPackage(Guid, IVsPackage) Method

Definition

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

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

Parameters

guidPackage
Guid

[in] Unique identifier of the VSPackage.

ppPackage
IVsPackage

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

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

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