Sdílet prostřednictvím


ParameterDescriptor.GetCustomAttributes Metoda

Definice

Přetížení

GetCustomAttributes(Boolean)

Vrátí pole vlastních atributů, které jsou definovány pro tento člen, s výjimkou pojmenovaných atributů.

GetCustomAttributes(Type, Boolean)

Vrátí pole vlastních atributů, které jsou definovány pro tento člen, identifikované typem.

GetCustomAttributes(Boolean)

Vrátí pole vlastních atributů, které jsou definovány pro tento člen, s výjimkou pojmenovaných atributů.

public virtual object[] GetCustomAttributes (bool inherit);
abstract member GetCustomAttributes : bool -> obj[]
override this.GetCustomAttributes : bool -> obj[]
Public Overridable Function GetCustomAttributes (inherit As Boolean) As Object()

Parametry

inherit
Boolean

true vyhledat hierarchii řetěz pro zděděný vlastní atribut; jinak false.

Návraty

Object[]

Pole vlastních atributů nebo prázdné pole, pokud neexistují žádné vlastní atributy.

Implementuje

Výjimky

Vlastní typ atributu nelze načíst.

Pro tento člen je definováno více než jeden atribut typu attributeType .

Platí pro

GetCustomAttributes(Type, Boolean)

Vrátí pole vlastních atributů, které jsou definovány pro tento člen, identifikované typem.

public virtual object[] GetCustomAttributes (Type attributeType, bool inherit);
abstract member GetCustomAttributes : Type * bool -> obj[]
override this.GetCustomAttributes : Type * bool -> obj[]
Public Overridable Function GetCustomAttributes (attributeType As Type, inherit As Boolean) As Object()

Parametry

attributeType
Type

Typ vlastních atributů.

inherit
Boolean

true vyhledat hierarchii řetěz pro zděděný vlastní atribut; jinak false.

Návraty

Object[]

Pole vlastních atributů nebo prázdné pole, pokud neexistují žádné vlastní atributy.

Implementuje

Výjimky

Vlastní typ atributu nelze načíst.

Pro tento člen je definováno více než jeden atribut typu attributeType .

Parametr attributeType má hodnotu null.

Platí pro