The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
IMetaDataImport::EnumEvents method
Enumerates event definition tokens for the specified TypeDef token.
Syntax
HRESULT EnumEvents( [in, out] HCORENUM *phEnum, [in] mdTypeDef tkTypDef, [out, size_is(cMax), length_is(*pcEvents)] mdEvent rgEvents[], [in] ULONG cMax, [out] ULONG *pcEvents );
Parameters
- phEnum [in, out]
-
A pointer to the enumerator.
- tkTypDef [in]
-
The TypeDef token whose event definitions are to be enumerated.
- rgEvents [out]
-
The array of returned events.
- cMax [in]
-
The maximum size of the rgEvents array.
- pcEvents [out]
-
The actual number of events returned in rgEvents.
Return value
| HRESULT | Description |
|---|---|
| S_OK | EnumEvents returned successfully. |
| S_FALSE | There are no events to enumerate. In this case, pcEvents is zero. |
Requirements
|
IDL |
|
|---|
See also
Show: