Freigeben über


IMetaDataImport::EnumEvents Method

Enumerates event definition tokens for the specified TypeDef token.

HRESULT EnumEvents ( 
    HCORENUM    *phEnum, 
    mdTypeDef   td, 
    mdEvent     rEvents[], 
    ULONG       cMax,
    ULONG       *pcEvents
);

Parameters

Parameter Description

phEnum

[in, out] A pointer to the enumerator.

td

[in] The TypeDef token whose event definitions are to be enumerated.

rEvents

[out] The array of returned events.

cMax

[in] The maximum size of the rEvents array.

pcEvents

[out] The actual number of events returned in rEvents.

Return Value

HRESULT Description

S_OK

EnumEvents returned successfully.

S_FALSE

There are no events to enumerate. In that case, pcEvents is to zero.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: Cor.h

Library: Included as a resource in Mscoree.dll

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Reference

IMetaDataImport Interface
IMetaDataImport2 Interface