IMetaDataImport::EnumMethodSemantics method (rometadataapi.h)

Enumerates the properties and the property-change events to which the specified method is related.

Syntax

HRESULT EnumMethodSemantics(
  [in, out] HCORENUM    *phEnum,
  [in]      mdMethodDef tkMethodDef,
  [out]     mdToken []  rgEventProp,
  [in]      ULONG       cMax,
  [out]     ULONG       *pcEventProp
);

Parameters

[in, out] phEnum

A pointer to the enumerator. This must be NULL for the first call of this method.

[in] tkMethodDef

A MethodDef token that limits the scope of the enumeration.

[out] rgEventProp

The array used to store the events or properties.

[in] cMax

The maximum size of the rgEventProp array.

[out] pcEventProp

The number of events or properties returned in rgEventProp.

Return value

HRESULT Description
S_OK EnumMethodSemantics returned successfully.
S_FALSE There are no events or properties to enumerate. In this case, pcEventProp is 0 (zero).

Requirements

Requirement Value
Target Platform Windows
Header rometadataapi.h

See also

IMetaDataImport