MetadataBuilder.AddMethodSpecification(EntityHandle, BlobHandle) 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.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.