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

Définition

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

 virtual bool System.Reflection.ICustomAttributeProvider.IsDefined(Type ^ attributeType, bool inherit) = System::Reflection::ICustomAttributeProvider::IsDefined;
bool ICustomAttributeProvider.IsDefined (Type attributeType, bool inherit);
abstract member System.Reflection.ICustomAttributeProvider.IsDefined : Type * bool -> bool
override this.System.Reflection.ICustomAttributeProvider.IsDefined : Type * bool -> bool
Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean Implements ICustomAttributeProvider.IsDefined

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 à