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ž true, vyhledejte řetězec hierarchie pro zděděný vlastní atribut.

Návraty

trueattributeType pokud je definován na tomto členu, false v opačném případě.

Platí pro