TypeDelegator.IsDefined(Type, Boolean) Méthode

Définition

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é.

S’applique à