ICustomAttributeProvider.IsDefined(Type, Boolean) Méthode

Définition

Indique si une ou plusieurs instances de attributeType ce membre sont définies.

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

Paramètres

attributeType
Type

Type des attributs personnalisés.

inherit
Boolean

Quand true, recherchez la chaîne de hiérarchie pour l’attribut personnalisé hérité.

Retours

true si la attributeType valeur est définie sur ce membre ; false sinon.

S’applique à