ModuleBuilder.SetCustomAttribute Metódus

Definíció

Egyéni attribútumot alkalmaz erre a modulra.

Túlterhelések

Name Description
SetCustomAttribute(CustomAttributeBuilder)

Egyéni attribútumot alkalmaz erre a modulra egy egyéni attribútumszerkesztő használatával.

SetCustomAttribute(ConstructorInfo, Byte[])

Egyéni attribútumot alkalmaz erre a modulra egy megadott nagy bináris objektum (BLOB) használatával, amely az attribútumot jelöli.

SetCustomAttribute(CustomAttributeBuilder)

Forrás:
ModuleBuilder.cs
Forrás:
ModuleBuilder.cs
Forrás:
ModuleBuilder.cs
Forrás:
ModuleBuilder.cs
Forrás:
ModuleBuilder.cs

Egyéni attribútumot alkalmaz erre a modulra egy egyéni attribútumszerkesztő használatával.

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

Egy segédosztály egy példánya, amely meghatározza az alkalmazandó egyéni attribútumot.

Kivételek

customBuilder az null.

A következőre érvényes:

SetCustomAttribute(ConstructorInfo, Byte[])

Forrás:
ModuleBuilder.cs
Forrás:
ModuleBuilder.cs
Forrás:
ModuleBuilder.cs
Forrás:
ModuleBuilder.cs
Forrás:
ModuleBuilder.cs

Egyéni attribútumot alkalmaz erre a modulra egy megadott nagy bináris objektum (BLOB) használatával, amely az attribútumot jelöli.

public:
 void SetCustomAttribute(System::Reflection::ConstructorInfo ^ con, cli::array <System::Byte> ^ binaryAttribute);
public void SetCustomAttribute(System.Reflection.ConstructorInfo con, byte[] binaryAttribute);
[System.Runtime.InteropServices.ComVisible(true)]
public void SetCustomAttribute(System.Reflection.ConstructorInfo con, byte[] binaryAttribute);
member this.SetCustomAttribute : System.Reflection.ConstructorInfo * byte[] -> unit
[<System.Runtime.InteropServices.ComVisible(true)>]
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ájt BLOB.

Attribútumok

Kivételek

con vagy binaryAttribute az null.

Megjegyzések

A formázással binaryAttributekapcsolatos további információkért tekintse meg a Common Language Infrastructure (CLI) dokumentációját, különösen a "Partition II: Metadata Definition and Semantics" (Partíció II: Metaadatok definíciója és szemantikája) című témakört. További információ: ECMA 335 Common Language Infrastructure (CLI).

A következőre érvényes: