TypeDelegator.IsDefined(Type, Boolean) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Indique si un attribut personnalisé identifié par attributeType est défini.
public:
override bool IsDefined(Type ^ attributeType, bool inherit);
public override bool IsDefined(Type attributeType, bool inherit);
override this.IsDefined : Type * bool -> bool
Public Overrides Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean
Paramètres
- attributeType
- Type
Spécifie s’il faut rechercher la chaîne d’héritage de ce type pour rechercher les attributs.
- inherit
- Boolean
Tableau d’attributs personnalisés identifiés par type.
Retours
true si un attribut personnalisé identifié par attributeType est défini ; sinon, false.
Exceptions
attributeType a la valeur null.
Impossible de charger le type d’attribut personnalisé.