GenericTypeParameterBuilder.SetCustomAttribute Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
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)
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[])
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
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.