MethodBuilder.GetCustomAttributes Metoda

Definice

Vrátí vlastní atributy definované pro tuto metodu.

Přetížení

Name Description
GetCustomAttributes(Boolean)

Vrátí všechny vlastní atributy definované pro tuto metodu.

GetCustomAttributes(Type, Boolean)

Vrátí vlastní atributy identifikované daným typem.

GetCustomAttributes(Boolean)

Zdroj:
MethodBuilder.cs

Vrátí všechny vlastní atributy definované pro tuto metodu.

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

Určuje, jestli se má vyhledat řetězec dědičnosti tohoto člena, aby se vyhledaly vlastní atributy.

Návraty

Object[]

Vrátí pole objektů představující všechny vlastní atributy této metody.

Výjimky

Tato metoda se v současné době nepodporuje. Načtěte metodu pomocí GetMethod(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[]) a volání GetCustomAttributes(Boolean) vráceného MethodInfo.

Platí pro

GetCustomAttributes(Type, Boolean)

Zdroj:
MethodBuilder.cs

Vrátí vlastní atributy identifikované daným typem.

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 vlastního atributu.

inherit
Boolean

Určuje, jestli se má vyhledat řetězec dědičnosti tohoto člena, aby se vyhledaly vlastní atributy.

Návraty

Object[]

Vrátí pole objektů představující atributy této metody, které jsou typu attributeType.

Výjimky

Tato metoda se v současné době nepodporuje. Načtěte metodu pomocí GetMethod(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[]) a volání GetCustomAttributes(Boolean) vráceného MethodInfo.

Platí pro