ParameterDescriptor.IsDefined(Type, Boolean) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Indique si une ou plusieurs instances d'un type d'attribut personnalisé sont définies pour ce membre.
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
Paramètres
- attributeType
- Type
Type des attributs personnalisés.
- inherit
- Boolean
true pour rechercher l’attribut personnalisé hérité dans la chaîne hiérarchique ; sinon, false.
Retours
true si le type d’attribut personnalisé est défini pour ce membre ; sinon, false.
Implémente
Exceptions
Le paramètre attributeType est null.