Język

MetadataBuilder.AddExportedType Metoda

Definicja

Dodaje wyeksportowany typ.

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

Parametry

attributes
TypeAttributes

Atrybuty typu.

namespace
StringHandle

Przestrzeń nazw typu.

name
StringHandle

Nazwa typu.

implementation
EntityHandle

Obsługa jednostki implementacji, która może być jedną z następujących wartości: AssemblyFileHandle, ExportedTypeHandlelub AssemblyReferenceHandle.

typeDefinitionId
Int32

Identyfikator definicji typu.

Zwraca

Dojście do dodanego typu wyeksportowanego.

Wyjątki

implementation nie ma oczekiwanego rodzaju uchwytu.

Dotyczy