MetadataBuilder.AddExportedType(TypeAttributes, StringHandle, StringHandle, EntityHandle, Int32) Método

Definición

Agrega un tipo exportado.Adds an exported type.

public:
 System::Reflection::Metadata::ExportedTypeHandle AddExportedType(System::Reflection::TypeAttributes attributes, System::Reflection::Metadata::StringHandle namespace, System::Reflection::Metadata::StringHandle name, System::Reflection::Metadata::EntityHandle implementation, int typeDefinitionId);
public System.Reflection.Metadata.ExportedTypeHandle AddExportedType (System.Reflection.TypeAttributes attributes, System.Reflection.Metadata.StringHandle namespace, System.Reflection.Metadata.StringHandle name, System.Reflection.Metadata.EntityHandle implementation, int typeDefinitionId);
member this.AddExportedType : System.Reflection.TypeAttributes * System.Reflection.Metadata.StringHandle * System.Reflection.Metadata.StringHandle * System.Reflection.Metadata.EntityHandle * int -> System.Reflection.Metadata.ExportedTypeHandle
Public Function AddExportedType (attributes As TypeAttributes, namespace As StringHandle, name As StringHandle, implementation As EntityHandle, typeDefinitionId As Integer) As ExportedTypeHandle

Parámetros

attributes
TypeAttributes

Los atributos del tipo.The type attributes.

namespace
StringHandle

El espacio de nombres del tipo.The type namespace.

name
StringHandle

Nombre del tipo.The type name.

implementation
EntityHandle

El identificador de la entidad de implementación, que puede ser uno de los siguientes: AssemblyFileHandle, ExportedTypeHandle o AssemblyReferenceHandle.The implementation entity handle, which can be one of the following: an AssemblyFileHandle, ExportedTypeHandle, or AssemblyReferenceHandle.

typeDefinitionId
Int32

El id. de definición de tipo.The type definition ID.

Devoluciones

ExportedTypeHandle

Un identificador del tipo exportado agregado.A handle to the added exported type.

Excepciones

implementation no tiene el tipo de identificador esperado.implementation doesn't have the expected handle kind.

Se aplica a