Sdílet prostřednictvím


ParameterDescriptor.IsDefined(Type, Boolean) Metoda

Definice

Určuje, zda je pro tohoto člena definována jedna nebo více instancí vlastního typu atributu.

public virtual bool IsDefined (Type attributeType, bool inherit);
abstract member IsDefined : Type * bool -> bool
override this.IsDefined : Type * bool -> bool
Public Overridable Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean

Parametry

attributeType
Type

Typ vlastních atributů.

inherit
Boolean

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

Návraty

true Pokud vlastní atribut typ je definován pro tento člen; jinak false.

Implementuje

Výjimky

Parametr attributeType má hodnotu null.

Platí pro