다음을 통해 공유


IVsUserContextItemCollection._NewEnum(Object) Method

Definition

Returns an enumerator to use for going through the collection.

public:
 int _NewEnum([Runtime::InteropServices::Out] System::Object ^ % pEnum);
int _NewEnum([Runtime::InteropServices::Out] winrt::Windows::Foundation::IInspectable const & & pEnum);
public int _NewEnum (out object pEnum);
abstract member _NewEnum : obj -> int
Public Function _NewEnum (ByRef pEnum As Object) As Integer

Parameters

pEnum
Object

[out] Pointer to the enumerator interface, IEnumVARIANT.

Returns

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

);

Applies to