Export (0) Print
Expand All
Expand Minimize

IMetaDataImport::GetMethodSemantics Method

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.

HRESULT GetMethodSemantics (
   [in]  mdMethodDef   mb,
   [in]  mdToken       tkEventProp,
   [out] DWORD         *pdwSemanticsFlags
);

mb

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

tkEventProp

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

pdwSemanticsFlags

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

The IMetaDataEmit::DefineProperty method sets a method's semantics flags.

Platforms: See .NET Framework System Requirements.

Header: Cor.h

Library: Included as a resource in MsCorEE.dll

.NET Framework Versions: 4.6 RC, 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

Show:
© 2015 Microsoft