Bagikan melalui


MetadataBuilder.AddExportedType Metode

Definisi

Menambahkan jenis yang diekspor.

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

Parameter

attributes
TypeAttributes

Atribut jenis.

namespace
StringHandle

Namespace layanan jenis.

name
StringHandle

Nama jenis.

implementation
EntityHandle

Handel entitas implementasi, yang dapat berupa salah satu hal berikut: AssemblyFileHandle, , ExportedTypeHandleatau AssemblyReferenceHandle.

typeDefinitionId
Int32

ID definisi jenis.

Mengembalikan

Handel ke jenis yang diekspor yang ditambahkan.

Pengecualian

implementation tidak memiliki jenis handel yang diharapkan.

Berlaku untuk