Freigeben über


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 (
    mdMethodDef   mb,
    mdToken       tkEventProp,
    DWORD         *pdwSemanticsFlags
);

Parameters

Parameter Description

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 enumeration.

Remarks

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

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