MetadataBuilder.AddExportedType Metod

Definition

Lägger till en exporterad 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

Parametrar

attributes
TypeAttributes

Typattributen.

namespace
StringHandle

Typnamnområdet.

name
StringHandle

Typnamnet.

implementation
EntityHandle

Implementeringsentiteten hanterar, vilket kan vara något av följande: en AssemblyFileHandle, ExportedTypeHandle, eller AssemblyReferenceHandle.

typeDefinitionId
Int32

Typdefinitions-ID.

Returer

Ett handtag till den tillagda exporterade typen.

Undantag

implementation har inte den förväntade referenstyp.

Gäller för