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

Définition

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

 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

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

Retours

true si la attributeType valeur est définie sur ce membre ; false sinon.

Implémente

S’applique à