MetadataBuilder.AddMethodSemantics Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.