ReflectedAsyncActionDescriptor.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.
Détermine si une ou plusieurs instances du type d'attribut spécifié sont définies pour le membre d'action.
public override bool IsDefined(Type attributeType, bool inherit);
override this.IsDefined : Type * bool -> bool
Public Overrides Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean
Paramètres
- attributeType
- Type
Type de l'attribut personnalisé.
- inherit
- Boolean
true pour rechercher l’attribut personnalisé hérité dans la chaîne hiérarchique ; sinon, false.
Retours
true si un attribut de type représenté par attributeType est défini pour ce membre ; sinon, false.