ICustomAttributeProvider.IsDefined(Type, Boolean) Metoda

Definice

Určuje, zda je u tohoto člena attributeType definována jedna nebo více instancí.

public:
 bool IsDefined(Type ^ attributeType, bool inherit);
public bool IsDefined (Type attributeType, bool inherit);
abstract member IsDefined : Type * bool -> bool
Public Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean

Parametry

attributeType
Type

Typ vlastních atributů.

inherit
Boolean

Když truevyhledejte řetěz hierarchie pro zděděný vlastní atribut.

Návraty

Boolean

true pokud je tento attributeType člen definován; false jinak.

Platí pro