ComponentDesigner.PreFilterAttributes(IDictionary) 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.
Permet à un concepteur d’ajouter à l’ensemble d’attributs qu’il expose par le biais d’un TypeDescriptor.
protected:
virtual void PreFilterAttributes(System::Collections::IDictionary ^ attributes);
protected virtual void PreFilterAttributes(System.Collections.IDictionary attributes);
abstract member PreFilterAttributes : System.Collections.IDictionary -> unit
override this.PreFilterAttributes : System.Collections.IDictionary -> unit
Protected Overridable Sub PreFilterAttributes (attributes As IDictionary)
Paramètres
- attributes
- IDictionary
Attributs de la classe du composant.
Remarques
Cette méthode permet d’ajouter des éléments au dictionnaire d’attributs qu’un concepteur expose par le biais d’un TypeDescriptor.
Les clés du dictionnaire d’attributs sont les identificateurs de type des attributs, comme spécifié par la valeur de leur TypeId propriété. Les objets sont de type PropertyDescriptor. Cette méthode est appelée immédiatement avant la PostFilterAttributes méthode.
Notes pour les héritiers
Vous pouvez modifier directement le dictionnaire accessible via le attributes paramètre, ou vous pouvez le laisser inchangé. Si vous remplacez cette méthode, appelez l’implémentation de base avant d’effectuer votre propre filtrage.