MetadataBuilder.AddInterfaceImplementation(TypeDefinitionHandle, EntityHandle) Método

Definição

Adiciona uma implementação de interface a um tipo.Adds an interface implementation to a type.

public:
 System::Reflection::Metadata::InterfaceImplementationHandle AddInterfaceImplementation(System::Reflection::Metadata::TypeDefinitionHandle type, System::Reflection::Metadata::EntityHandle implementedInterface);
public System.Reflection.Metadata.InterfaceImplementationHandle AddInterfaceImplementation (System.Reflection.Metadata.TypeDefinitionHandle type, System.Reflection.Metadata.EntityHandle implementedInterface);
member this.AddInterfaceImplementation : System.Reflection.Metadata.TypeDefinitionHandle * System.Reflection.Metadata.EntityHandle -> System.Reflection.Metadata.InterfaceImplementationHandle
Public Function AddInterfaceImplementation (type As TypeDefinitionHandle, implementedInterface As EntityHandle) As InterfaceImplementationHandle

Parâmetros

type
TypeDefinitionHandle

O tipo que implementa a interface.The type implementing the interface.

implementedInterface
EntityHandle

A interface que está sendo implementada, que pode ser uma das seguintes: TypeDefinitionHandle, TypeReferenceHandle ou TypeSpecificationHandle.The interface being implemented, which can be one of the following: TypeDefinitionHandle, TypeReferenceHandle, or TypeSpecificationHandle.

Retornos

InterfaceImplementationHandle

Um identificador para a implementação de interface adicionada.A handle to the added interface implementation.

Exceções

implementedInterface não tem o tipo de identificador esperado.implementedInterface doesn't have the expected handle kind.

Comentários

Implementações de interface devem ser adicionadas na mesma ordem que as definições de tipo correspondentes que implementam a interface.Interface implementations must be added in the same order as the corresponding type definitions implementing the interface.

Se um tipo implementar várias interfaces, as entradas correspondentes deverão ser adicionadas na ordem determinada por seus índices codificados ( CodedIndex.TypeDefOrRefOrSpec(EntityHandle) ).If a type implements multiple interfaces, the corresponding entries must be added in the order determined by their coded indices (CodedIndex.TypeDefOrRefOrSpec(EntityHandle)).

Aplica-se a