IVsUserContextItemCollection._NewEnum Method

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

'宣言
Function _NewEnum ( _
    <OutAttribute> ByRef pEnum As Object _
) As Integer
'使用
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
)
function _NewEnum(
    pEnum : Object
) : int

Parameters

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

);

Permissions

See Also

Reference

IVsUserContextItemCollection Interface

IVsUserContextItemCollection Members

Microsoft.VisualStudio.Shell.Interop Namespace