ComponentDesigner.PreFilterAttributes(IDictionary) Método
Definición
Permite a un diseñador agregar elementos al conjunto de atributos que expone mediante un objeto TypeDescriptor.Allows a designer to add to the set of attributes that it exposes through a 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)
Parámetros
- attributes
- IDictionary
Atributos para la clase del componente.The attributes for the class of the component.
Comentarios
Este método proporciona una manera de agregar elementos al Diccionario de atributos que un diseñador expone a través de un TypeDescriptor .This method provides a way to add items to the dictionary of attributes that a designer exposes through a TypeDescriptor.
Las claves del Diccionario de atributos son los identificadores de tipo de los atributos, tal y como se especifica en el valor de su TypeId propiedad.The keys in the dictionary of attributes are the type identifiers of the attributes, as specified by the value of their TypeId property. Los objetos son del tipo PropertyDescriptor .The objects are of type PropertyDescriptor. Se llama a este método inmediatamente antes del PostFilterAttributes método.This method is called immediately before the PostFilterAttributes method.
Notas a los desarrolladores de herederos
Puede modificar directamente el diccionario que es accesible a través del attributes
parámetro o puede dejarlo sin cambios.You can directly modify the dictionary that is accessible through the attributes
parameter, or you can leave it unchanged. Si invalida este método, llame a la implementación base antes de realizar su propio filtrado.If you override this method, call the base implementation before you perform your own filtering.