FieldBuilder.GetCustomAttributes Metod

Definition

Returnerar de anpassade attribut som definierats för det här fältet.

Överlagringar

Name Description
GetCustomAttributes(Boolean)

Returnerar alla anpassade attribut som definierats för det här fältet.

GetCustomAttributes(Type, Boolean)

Returnerar alla anpassade attribut som definierats för det här fältet som identifieras av den angivna typen.

GetCustomAttributes(Boolean)

Källa:
FieldBuilder.cs

Returnerar alla anpassade attribut som definierats för det här fältet.

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

Styr arv av anpassade attribut från basklasser.

Returer

Object[]

En matris av typen Object som representerar alla anpassade attribut för konstruktorn som representeras av den här FieldBuilder instansen.

Undantag

Den här metoden stöds inte.

Gäller för

GetCustomAttributes(Type, Boolean)

Källa:
FieldBuilder.cs

Returnerar alla anpassade attribut som definierats för det här fältet som identifieras av den angivna typen.

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 anpassade attributtypen.

inherit
Boolean

Styr arv av anpassade attribut från basklasser.

Returer

Object[]

En matris av typen Object som representerar alla anpassade attribut för konstruktorn som representeras av den här FieldBuilder instansen.

Undantag

Den här metoden stöds inte.

Gäller för