COMFieldInfo.IsDefined(Type, Boolean) Méthode

Définition

Détermine si le type d'attribut spécifié est attaché à ce champ.

Cette API prend en charge l'infrastructure du produit et n'est pas destinée à être utilisée directement à partir de votre code.

public:
 override bool IsDefined(Type ^ t, bool inherit);
public override bool IsDefined (Type t, bool inherit);
override this.IsDefined : Type * bool -> bool
Public Overrides Function IsDefined (t As Type, inherit As Boolean) As Boolean

Paramètres

t
Type

Type d’attribut à rechercher.

inherit
Boolean

true pour rechercher les attributs dans la hiérarchie d'héritage de ce membre.

Retours

Boolean

false dans tous les cas.

S’applique à

Voir aussi