共用方式為


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 沒有預期的控制代碼種類。

適用於