Partager via


ActionDescriptor.IsDefined(Type, Boolean) Méthode

Définition

Détermine si une ou plusieurs instances du type d'attribut spécifié 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 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 attributeType est défini pour ce membre ; sinon, false.

Implémente

Exceptions

Le paramètre attritubeType est null.

S’applique à