Partilhar via


IVsShell.GetPackageEnum(IEnumPackages) Method

Definition

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

public:
 int GetPackageEnum([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IEnumPackages ^ % ppenum);
public:
 int GetPackageEnum([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IEnumPackages ^ &  ppenum);
int GetPackageEnum([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IEnumPackages const & & ppenum);
public int GetPackageEnum (out Microsoft.VisualStudio.Shell.Interop.IEnumPackages ppenum);
abstract member GetPackageEnum : IEnumPackages -> int
Public Function GetPackageEnum (ByRef ppenum As IEnumPackages) As Integer

Parameters

ppenum
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