Partager via


ParameterDescriptor.IsDefined(Type, Boolean) Méthode

Définition

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.

S’applique à