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

구현 엔터티 핸들이며 AssemblyFileHandle, ExportedTypeHandle 또는 AssemblyReferenceHandle 중 하나일 수 있습니다.

typeDefinitionId
Int32

형식 정의 ID입니다.

반환

추가된 내보낸 형식에 대한 핸들입니다.

예외

implementation에 필요한 핸들 종류가 없습니다.

적용 대상