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 が、必要なハンドルの型ではありません。

注釈

エントリは任意の順序で追加できます。 シリアル化されると、テーブルは自動的に並べ替えられます。

適用対象