ComponentDesigner.PreFilterAttributes(IDictionary) 方法

定义

允许设计器在通过 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)

参数

attributes
IDictionary

组件的类的特性。The attributes for the class of the component.

实现

注解

此方法提供了一种方法,用于向设计器通过 TypeDescriptor公开的特性字典中添加项。This method provides a way to add items to the dictionary of attributes that a designer exposes through a TypeDescriptor.

属性字典中的关键字是属性的类型标识符,这些标识符由其 TypeId 属性的值指定。The keys in the dictionary of attributes are the type identifiers of the attributes, as specified by the value of their TypeId property. 对象的类型为 PropertyDescriptorThe objects are of type PropertyDescriptor. PostFilterAttributes 方法之前立即调用此方法。This method is called immediately before the PostFilterAttributes method.

继承者说明

可以直接修改可通过 attributes 参数访问的字典,也可以将其保持不变。You can directly modify the dictionary that is accessible through the attributes parameter, or you can leave it unchanged. 如果重写此方法,请在执行您自己的筛选之前调用基实现。If you override this method, call the base implementation before you perform your own filtering.

适用于

另请参阅