IVsShell.GetPackageEnum(IEnumPackages) IVsShell.GetPackageEnum(IEnumPackages) IVsShell.GetPackageEnum(IEnumPackages) Method

Definition

Returns a standard enumerator to iterate through the VSPackages currently loaded by the environment.

public int GetPackageEnum (out Microsoft.VisualStudio.Shell.Interop.IEnumPackages ppenum);
abstract member GetPackageEnum :  -> int
Public Function GetPackageEnum (ByRef ppenum As IEnumPackages) As Integer
Parameters
ppenum
IEnumPackages IEnumPackages IEnumPackages

[out] Pointer to the IEnumPackages interface that specifies the enumerator of the loaded VSPackage.

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::GetPackageEnum(  
   [out] IEnumPackages **ppEnum  
);  

This method should seldom be used. Interaction with VSPackages should be conducted by means of the services they proffer.

Applies to