ModuleBuilder.GetCustomAttributes Metod

Definition

Returnerar de anpassade attribut som tillämpas på den aktuella ModuleBuilder.

Överlagringar

Name Description
GetCustomAttributes(Boolean)

Returnerar alla anpassade attribut som har tillämpats på den aktuella ModuleBuilder.

GetCustomAttributes(Type, Boolean)

Returnerar alla anpassade attribut som har tillämpats på den aktuella ModuleBuilder, och som härleds från en angiven attributtyp.

GetCustomAttributes(Boolean)

Källa:
ModuleBuilder.cs

Returnerar alla anpassade attribut som har tillämpats på den aktuella ModuleBuilder.

public:
 override cli::array <System::Object ^> ^ GetCustomAttributes(bool inherit);
public override object[] GetCustomAttributes(bool inherit);
override this.GetCustomAttributes : bool -> obj[]
Public Overrides Function GetCustomAttributes (inherit As Boolean) As Object()

Parametrar

inherit
Boolean

Det här argumentet ignoreras för objekt av den här typen.

Returer

Object[]

En matris som innehåller anpassade attribut. matrisen är tom om det inte finns några attribut.

Gäller för

GetCustomAttributes(Type, Boolean)

Källa:
ModuleBuilder.cs

Returnerar alla anpassade attribut som har tillämpats på den aktuella ModuleBuilder, och som härleds från en angiven attributtyp.

public:
 override cli::array <System::Object ^> ^ GetCustomAttributes(Type ^ attributeType, bool inherit);
public override object[] GetCustomAttributes(Type attributeType, bool inherit);
override this.GetCustomAttributes : Type * bool -> obj[]
Public Overrides Function GetCustomAttributes (attributeType As Type, inherit As Boolean) As Object()

Parametrar

attributeType
Type

Den bastyp som attributen härleds från.

inherit
Boolean

Det här argumentet ignoreras för objekt av den här typen.

Returer

Object[]

En matris som innehåller de anpassade attribut som på valfri nivå härleds från attributeType; matrisen är tom om det inte finns några sådana attribut.

Undantag

attributeType är null.

attributeType är inte ett Type objekt som tillhandahålls av körningen. Till exempel attributeType är ett TypeBuilder objekt.

Gäller för