GenericTypeParameterBuilder.SetCustomAttribute Metódus

Definíció

Egyéni attribútumot állít be.

Túlterhelések

Name Description
SetCustomAttribute(CustomAttributeBuilder)

Egyéni attribútum beállítása egyéni attribútumszerkesztővel.

SetCustomAttribute(ConstructorInfo, Byte[])

Egyéni attribútum beállítása egy megadott egyéni attribútumblob használatával.

SetCustomAttribute(CustomAttributeBuilder)

Forrás:
GenericTypeParameterBuilder.cs
Forrás:
GenericTypeParameterBuilder.cs
Forrás:
GenericTypeParameterBuilder.cs
Forrás:
GenericTypeParameterBuilder.cs
Forrás:
GenericTypeParameterBuilder.cs

Egyéni attribútum beállítása egyéni attribútumszerkesztővel.

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)

Paraméterek

customBuilder
CustomAttributeBuilder

Az egyéni attribútumot meghatározó segédosztály példánya.

Kivételek

customBuilder az null.

A következőre érvényes:

SetCustomAttribute(ConstructorInfo, Byte[])

Forrás:
GenericTypeParameterBuilder.cs
Forrás:
GenericTypeParameterBuilder.cs
Forrás:
GenericTypeParameterBuilder.cs
Forrás:
GenericTypeParameterBuilder.cs
Forrás:
GenericTypeParameterBuilder.cs

Egyéni attribútum beállítása egy megadott egyéni attribútumblob használatával.

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())

Paraméterek

con
ConstructorInfo

Az egyéni attribútum konstruktora.

binaryAttribute
Byte[]

Az attribútumot képviselő bájtblob.

Kivételek

con az null.

-vagy-

binaryAttribute null értékű hivatkozás.

Megjegyzések

A formátumról binaryAttributea Common Language Infrastructure (CLI) specifikációjának II. partíciójában található metaadat-specifikációban talál további információt.

A következőre érvényes: