Share via


MetadataBuilder.AddExportedType メソッド

定義

エクスポートされた型を追加します。

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

パラメーター

attributes
TypeAttributes

型属性。

namespace
StringHandle

型の名前空間。

name
StringHandle

型名。

implementation
EntityHandle

実装エンティティ ハンドル。次のいずれかとなります: AssemblyFileHandleExportedTypeHandle、または AssemblyReferenceHandle

typeDefinitionId
Int32

型定義 ID。

戻り値

追加されたエクスポートされた型のハンドル。

例外

implementation が、必要なハンドルの型ではありません。

適用対象