TypeDelegator.IsDefined(Type, Boolean) Metoda

Definice

Určuje, zda je definován vlastní atribut identifikovaný attributeType .

public:
 override bool IsDefined(Type ^ attributeType, bool inherit);
public override bool IsDefined(Type attributeType, bool inherit);
override this.IsDefined : Type * bool -> bool
Public Overrides Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean

Parametry

attributeType
Type

Určuje, zda se má prohledávat řetězec dědičnosti tohoto typu, aby se zjistily atributy.

inherit
Boolean

Pole vlastních atributů identifikovaných podle typu

Návraty

true pokud je definován vlastní atribut, attributeType v opačném případě false.

Výjimky

attributeType je null.

Vlastní typ atributu nelze načíst.

Platí pro