IVsShell.GetPackageEnum Method
Returns a standard enumerator to iterate through the VSPackages currently loaded by the environment.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function GetPackageEnum ( _
<OutAttribute> ByRef ppenum As IEnumPackages _
) As Integer
'Usage
Dim instance As IVsShell
Dim ppenum As IEnumPackages
Dim returnValue As Integer
returnValue = instance.GetPackageEnum(ppenum)
int GetPackageEnum(
out IEnumPackages ppenum
)
int GetPackageEnum(
[OutAttribute] IEnumPackages^% ppenum
)
abstract GetPackageEnum :
ppenum:IEnumPackages byref -> int
function GetPackageEnum(
ppenum : IEnumPackages
) : int
Parameters
- ppenum
Type: Microsoft.VisualStudio.Shell.Interop.IEnumPackages%
[out] Pointer to the IEnumPackages interface that specifies the enumerator of the loaded VSPackage.
Return Value
Type: System.Int32
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.