MetadataBuilder.AddMethodSpecification(EntityHandle, BlobHandle) 方法

定义

添加方法规范(实例化)。

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

参数

method
EntityHandle

泛型方法实体句柄,可以是以下项之一:MethodDefinitionHandleMemberReferenceHandle

instantiation
BlobHandle

实例化 blob 对方法的泛型参数进行编码。

返回

已添加的方法规范的句柄。

例外

method 没有预期的句柄类型。

适用于