MemberInfo.ICustomAttributeProvider.IsDefined(Type, Boolean) Méthode

Définition

Indique si une ou plusieurs instances de attributeType sont définies sur ce membre.

C#
bool ICustomAttributeProvider.IsDefined(Type attributeType, bool inherit);

Paramètres

attributeType
Type

Type des attributs personnalisés.

inherit
Boolean

Si true, recherchez la chaîne de hiérarchie pour l’attribut personnalisé hérité.

Retours

true si l'instance attributeType est définie sur ce membre ; false dans le cas contraire.

Implémente

S’applique à

Produit Versions
.NET Core 1.0, Core 1.1
.NET Standard 1.5, 1.6