IMetaDataImport::GetMethodSemantics method (rometadataapi.h)

Gets flags indicating the relationship between the method referenced by the specified MethodDef token and the paired property and event referenced by the specified EventProp token.

Syntax

HRESULT GetMethodSemantics(
  mdMethodDef tkMethodDef,
  mdToken     tkEventProp,
  DWORD       *pdwSemanticsFlags
);

Parameters

tkMethodDef

A MethodDef token representing the method to get the semantic role information for.

tkEventProp

A token representing the paired property and event for which to get the method's role.

pdwSemanticsFlags

A pointer to the associated semantics flags. This value is a bitmask from the CorMethodSemanticsAttr enumeration.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

   
Target Platform Windows
Header rometadataapi.h

See also

IMetaDataImport