MetadataBuilder.AddExportedType Metoda
Definicja
Ważny
Niektóre informacje dotyczą produktów przedpremierowych, które mogą zostać znacznie zmodyfikowane przed premierą. Microsoft nie udziela żadnych gwarancji, ani wyraźnych, ani domniemanych, dotyczących informacji podanych tutaj.
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
Uchwyt jednostki implementacji, który może być jednym z następujących elementów: AssemblyFileHandle, ExportedTypeHandlelub AssemblyReferenceHandle.
- typeDefinitionId
- Int32
Identyfikator definicji typu.
Zwraca
Dojście do dodanego typu wyeksportowanego.
Wyjątki
implementation nie ma oczekiwanego rodzaju uchwytu.