GenericTypeParameterBuilder.SetCustomAttribute Metoda

Definice

Nastaví vlastní atribut.

Přetížení

SetCustomAttribute(CustomAttributeBuilder)

Nastavte vlastní atribut pomocí vlastního tvůrce atributů.

SetCustomAttribute(ConstructorInfo, Byte[])

Nastaví vlastní atribut pomocí zadaného objektu blob vlastního atributu.

SetCustomAttribute(CustomAttributeBuilder)

Zdroj:
GenericTypeParameterBuilder.cs
Zdroj:
GenericTypeParameterBuilder.cs
Zdroj:
GenericTypeParameterBuilder.cs

Nastavte vlastní atribut pomocí vlastního tvůrce atributů.

public:
 void SetCustomAttribute(System::Reflection::Emit::CustomAttributeBuilder ^ customBuilder);
public void SetCustomAttribute (System.Reflection.Emit.CustomAttributeBuilder customBuilder);
member this.SetCustomAttribute : System.Reflection.Emit.CustomAttributeBuilder -> unit
Public Sub SetCustomAttribute (customBuilder As CustomAttributeBuilder)

Parametry

customBuilder
CustomAttributeBuilder

Instance pomocné třídy, která definuje vlastní atribut.

Výjimky

customBuilder je null.

Platí pro

SetCustomAttribute(ConstructorInfo, Byte[])

Zdroj:
GenericTypeParameterBuilder.cs
Zdroj:
GenericTypeParameterBuilder.cs
Zdroj:
GenericTypeParameterBuilder.cs

Nastaví vlastní atribut pomocí zadaného objektu blob vlastního atributu.

public:
 void SetCustomAttribute(System::Reflection::ConstructorInfo ^ con, cli::array <System::Byte> ^ binaryAttribute);
public void SetCustomAttribute (System.Reflection.ConstructorInfo con, byte[] binaryAttribute);
member this.SetCustomAttribute : System.Reflection.ConstructorInfo * byte[] -> unit
Public Sub SetCustomAttribute (con As ConstructorInfo, binaryAttribute As Byte())

Parametry

con
ConstructorInfo

Konstruktor pro vlastní atribut.

binaryAttribute
Byte[]

Bajtový objekt blob představující atribut

Výjimky

con je null.

-nebo-

binaryAttribute je nulový odkaz.

Poznámky

Informace o tom, jak formátovat binaryAttribute, najdete ve specifikaci metadat v oddílu II specifikace common language infrastructure (CLI).

Platí pro