MetadataBuilder.AddExportedType Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Adiciona um tipo exportado.
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
Os atributos de tipo.
- namespace
- StringHandle
O espaço de nomes tipo.
- name
- StringHandle
O nome do tipo.
- implementation
- EntityHandle
O handle da entidade de implementação, que pode ser um dos seguintes: um AssemblyFileHandle, ExportedTypeHandle, ou AssemblyReferenceHandle.
- typeDefinitionId
- Int32
O ID de definição do tipo.
Devoluções
Um handle para o tipo exportado adicionado.
Exceções
implementation não tem o tipo de pega esperado.