Edit

Share via


MetadataBuilder.AddMethodSemantics Method

Definition

Associates a method (a getter, a setter, an adder, etc.) with a property or an event.

public:
 void AddMethodSemantics(System::Reflection::Metadata::EntityHandle association, System::Reflection::MethodSemanticsAttributes semantics, System::Reflection::Metadata::MethodDefinitionHandle methodDefinition);
public void AddMethodSemantics (System.Reflection.Metadata.EntityHandle association, System.Reflection.MethodSemanticsAttributes semantics, System.Reflection.Metadata.MethodDefinitionHandle methodDefinition);
member this.AddMethodSemantics : System.Reflection.Metadata.EntityHandle * System.Reflection.MethodSemanticsAttributes * System.Reflection.Metadata.MethodDefinitionHandle -> unit
Public Sub AddMethodSemantics (association As EntityHandle, semantics As MethodSemanticsAttributes, methodDefinition As MethodDefinitionHandle)

Parameters

association
EntityHandle

The association entity handle, which can be one of the following: EventDefinitionHandle or PropertyDefinitionHandle.

semantics
MethodSemanticsAttributes

The method semantics attributes.

methodDefinition
MethodDefinitionHandle

The method definition.

Exceptions

association doesn't have the expected handle kind.

Remarks

Entries may be added in any order. The table is automatically sorted when serialized.

Applies to