TypeDelegator.GetCustomAttributes Metoda

Definice

Vrátí všechny vlastní atributy definované pro tento typ.

Přetížení

GetCustomAttributes(Boolean)

Vrátí všechny vlastní atributy definované pro tento typ a určuje, zda se má prohledávat řetězec dědičnosti typu.

GetCustomAttributes(Type, Boolean)

Vrátí pole vlastních atributů identifikovaných typem.

GetCustomAttributes(Boolean)

Zdroj:
TypeDelegator.cs
Zdroj:
TypeDelegator.cs
Zdroj:
TypeDelegator.cs

Vrátí všechny vlastní atributy definované pro tento typ a určuje, zda se má prohledávat řetězec dědičnosti typu.

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 mají atributy vyhledat v řetězu dědičnosti tohoto typu.

Návraty

Object[]

Pole objektů obsahující všechny vlastní atributy definované pro tento typ.

Výjimky

Nelze načíst vlastní typ atributu.

Platí pro

GetCustomAttributes(Type, Boolean)

Zdroj:
TypeDelegator.cs
Zdroj:
TypeDelegator.cs
Zdroj:
TypeDelegator.cs

Vrátí pole vlastních atributů identifikovaných 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

Pole vlastních atributů identifikovaných typem.

inherit
Boolean

Určuje, jestli se mají atributy vyhledat v řetězu dědičnosti tohoto typu.

Návraty

Object[]

Pole objektů obsahujících vlastní atributy definované v tomto typu, které odpovídají parametru attributeType a určují, zda se má prohledávat řetězec dědičnosti typu, nebo null pokud nejsou u tohoto typu definovány žádné vlastní atributy.

Výjimky

attributeType je null.

Nelze načíst vlastní typ atributu.

Platí pro