MetadataBuilder.AddExportedType Metodo

Definizione

Aggiunge un tipo esportato.

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

Parametri

attributes
TypeAttributes

Attributi del tipo.

namespace
StringHandle

Spazio dei nomi del tipo.

name
StringHandle

Nome del tipo.

implementation
EntityHandle

Handle dell'entità di implementazione, che può essere uno dei seguenti: AssemblyFileHandle, ExportedTypeHandle o AssemblyReferenceHandle.

typeDefinitionId
Int32

ID della definizione del tipo.

Restituisce

Handle per il tipo esportato aggiunto.

Eccezioni

implementation non ha il tipo di handle previsto.

Si applica a