Share via


MetadataBuilder.AddCustomAttribute Metoda

Definice

Přidá vlastní atribut.

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

Parametry

constructor
EntityHandle

Konstruktor vlastního atributu: a MethodDefinitionHandle nebo MemberReferenceHandle.

value
BlobHandle

Objekt blob s hodnotou vlastního atributu

Návraty

Popisovač přidaného vlastního atributu.

Výjimky

parent nemá očekávaný druh popisovače.

Poznámky

Položky mohou být přidány v libovolném pořadí. Tabulka se automaticky seřadí při serializaci.

Platí pro