ConstructorBuilder.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.
Vérifie si le type d’attribut personnalisé spécifié 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
Type d’attribut personnalisé.
- inherit
- Boolean
Contrôle l’héritage des attributs personnalisés à partir de classes de base. Ce paramètre est ignoré.
Retours
true si le type d’attribut personnalisé spécifié est défini ; sinon, false.
Exceptions
Cette méthode n’est actuellement pas prise en charge. Vous pouvez récupérer le constructeur à l’aide GetConstructor(BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[]) de l’appel et appeler IsDefined(Type, Boolean) le constructeur retourné ConstructorInfo.
Remarques
Pour plus d’informations sur la mise en forme binaryAttribute, consultez la spécification des métadonnées.