Share via


MetadataBuilder.AddCustomAttribute 메서드

정의

사용자 지정 특성을 추가합니다.

public:
 System::Reflection::Metadata::CustomAttributeHandle AddCustomAttribute(System::Reflection::Metadata::EntityHandle parent, System::Reflection::Metadata::EntityHandle constructor, System::Reflection::Metadata::BlobHandle value);
public System.Reflection.Metadata.CustomAttributeHandle AddCustomAttribute (System.Reflection.Metadata.EntityHandle parent, System.Reflection.Metadata.EntityHandle constructor, System.Reflection.Metadata.BlobHandle value);
member this.AddCustomAttribute : System.Reflection.Metadata.EntityHandle * System.Reflection.Metadata.EntityHandle * System.Reflection.Metadata.BlobHandle -> System.Reflection.Metadata.CustomAttributeHandle
Public Function AddCustomAttribute (parent As EntityHandle, constructor As EntityHandle, value As BlobHandle) As CustomAttributeHandle

매개 변수

constructor
EntityHandle

사용자 지정 특성 생성자: MethodDefinitionHandle 또는 MemberReferenceHandle입니다.

value
BlobHandle

사용자 지정 특성 값 Blob입니다.

반환

추가된 사용자 지정 특성에 대한 핸들입니다.

예외

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

설명

항목은 순서에 따라 추가할 수 있습니다. 테이블은 직렬화될 때 자동으로 정렬됩니다.

적용 대상