Partager via


ReflectedAsyncActionDescriptor.IsDefined(Type, Boolean) Méthode

Définition

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.

S’applique à