FieldBuilder.GetCustomAttributes Metoda

Definicja

Zwraca atrybuty niestandardowe zdefiniowane dla tego pola.

Przeciążenia

GetCustomAttributes(Boolean)

Zwraca wszystkie atrybuty niestandardowe zdefiniowane dla tego pola.

GetCustomAttributes(Type, Boolean)

Zwraca wszystkie atrybuty niestandardowe zdefiniowane dla tego pola zidentyfikowane przez dany typ.

GetCustomAttributes(Boolean)

Źródło:
FieldBuilder.cs

Zwraca wszystkie atrybuty niestandardowe zdefiniowane dla tego pola.

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()

Parametry

inherit
Boolean

Steruje dziedziczeniem atrybutów niestandardowych z klas bazowych.

Zwraca

Object[]

Tablica typu Object reprezentująca wszystkie atrybuty niestandardowe konstruktora reprezentowanego przez to FieldBuilder wystąpienie.

Wyjątki

Ta metoda nie jest obsługiwana.

Dotyczy

GetCustomAttributes(Type, Boolean)

Źródło:
FieldBuilder.cs

Zwraca wszystkie atrybuty niestandardowe zdefiniowane dla tego pola zidentyfikowane przez dany typ.

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()

Parametry

attributeType
Type

Typ atrybutu niestandardowego.

inherit
Boolean

Steruje dziedziczeniem atrybutów niestandardowych z klas bazowych.

Zwraca

Object[]

Tablica typu Object reprezentująca wszystkie atrybuty niestandardowe konstruktora reprezentowanego przez to FieldBuilder wystąpienie.

Wyjątki

Ta metoda nie jest obsługiwana.

Dotyczy