Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Returns an enumerator to use for going through the collection.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function _NewEnum ( _
<OutAttribute> ByRef pEnum As Object _
) As Integer
'Usage
Dim instance As IVsUserContextItemCollection
Dim pEnum As Object
Dim returnValue As Integer
returnValue = instance._NewEnum(pEnum)
int _NewEnum(
out Object pEnum
)
int _NewEnum(
[OutAttribute] Object^% pEnum
)
abstract _NewEnum :
pEnum:Object byref -> int
function _NewEnum(
pEnum : Object
) : int
Parameters
- pEnum
Type: System.Object%
[out] Pointer to the enumerator interface, IEnumVARIANT.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
The enumerator is an OLE Automation-based enumerator. For more information about such enumerators, see ATLCollections Sample: Demonstrates ICollectionOnSTLImpl, CComEnumOnSTL, and Custom Copy Policy Classes.
COM Signature
From context.idl:
HRESULT IVsUserContextItemCollection::_NewEnum(
[out, retval] IUnknown ** pEnum
);
.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.
See Also
Reference
IVsUserContextItemCollection Interface