Share via


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

'Declaration
Function _NewEnum ( _
    <OutAttribute> ByRef pEnum As Object _
) As Integer
int _NewEnum(
    out Object pEnum
)
int _NewEnum(
    [OutAttribute] Object^% pEnum
)
abstract _NewEnum : 
        pEnum:Object byref -> int
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 ATL Collections Sample.

COM Signature

From context.idl:

HRESULT IVsUserContextItemCollection::_NewEnum(

   [out, retval] IUnknown ** pEnum

);

.NET Framework Security

See Also

Reference

IVsUserContextItemCollection Interface

Microsoft.VisualStudio.Shell.Interop Namespace