AssemblyBuilder.GetCustomAttributes Metod

Definition

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

Överlagringar

Name Description
GetCustomAttributes(Type, Boolean)

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

GetCustomAttributes(Boolean)

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

GetCustomAttributes(Type, Boolean)

Källa:
AssemblyBuilder.cs

Returnerar alla anpassade attribut som har tillämpats på den aktuella AssemblyBuilder, 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 härleds på valfri nivå 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

GetCustomAttributes(Boolean)

Källa:
AssemblyBuilder.cs

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

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