ContentDesigner.PostFilterProperties(IDictionary) 方法

定义

当在派生类中重写后,允许设计器更改或移除它通过 TypeDescriptor 对象公开的属性集中的项。When overridden in a derived class, allows a designer to change or remove items from the set of properties that it exposes through a TypeDescriptor object.

protected:
 override void PostFilterProperties(System::Collections::IDictionary ^ properties);
protected override void PostFilterProperties (System.Collections.IDictionary properties);
override this.PostFilterProperties : System.Collections.IDictionary -> unit
Protected Overrides Sub PostFilterProperties (properties As IDictionary)

参数

properties
IDictionary

PropertyDescriptor 对象,它表示组件的类的属性。The PropertyDescriptor objects that represent the properties of the class of the component. 属性字典中的关键字是属性名。The keys in the dictionary of properties are property names.

注解

此方法提供了一种方法,用于更改或删除通过 TypeDescriptor公开的属性字典中的项。This method provides a way to change or remove items within the dictionary of properties that are exposed through a TypeDescriptor.

属性字典中的键是属性的名称。The keys in the dictionary of properties are the names of the properties. 对象的类型为 PropertyDescriptorThe objects are of type PropertyDescriptor.

在此重写的方法中,设计器将清除除 ContentPlaceHolderIDID之外的所有属性。In this overridden method, the designer clears all properties except ContentPlaceHolderID and ID.

继承者说明

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

适用于

另请参阅