Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
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 (
[in] mdMethodDef mb,
[in] mdToken tkEventProp,
[out] DWORD *pdwSemanticsFlags
);
Parameters
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.
Remarks
The IMetaDataEmit::DefineProperty method sets a method's semantics flags.
Requirements
Platforms: See .NET supported operating systems.
Header: Cor.h
Library: CorGuids.lib