MetadataBuilder.AddMethodSpecification(EntityHandle, BlobHandle) Method

Definition

Adds a method specification (an instantiation).

public:
 System::Reflection::Metadata::MethodSpecificationHandle AddMethodSpecification(System::Reflection::Metadata::EntityHandle method, System::Reflection::Metadata::BlobHandle instantiation);
public System.Reflection.Metadata.MethodSpecificationHandle AddMethodSpecification (System.Reflection.Metadata.EntityHandle method, System.Reflection.Metadata.BlobHandle instantiation);
member this.AddMethodSpecification : System.Reflection.Metadata.EntityHandle * System.Reflection.Metadata.BlobHandle -> System.Reflection.Metadata.MethodSpecificationHandle
Public Function AddMethodSpecification (method As EntityHandle, instantiation As BlobHandle) As MethodSpecificationHandle

Parameters

method
EntityHandle

The generic method entity handle, which can be one of the following: MethodDefinitionHandle or MemberReferenceHandle.

instantiation
BlobHandle

The instantiation blob encoding the generic arguments of the method.

Returns

A handle to the added method specification.

Exceptions

method doesn't have the expected handle kind.

Applies to