ComponentDesigner.PostFilterEvents(IDictionary) 方法
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
允许设计器从通过 TypeDescriptor 公开的事件集中更改或移除项。
protected:
virtual void PostFilterEvents(System::Collections::IDictionary ^ events);
C#
protected virtual void PostFilterEvents (System.Collections.IDictionary events);
abstract member PostFilterEvents : System.Collections.IDictionary -> unit
override this.PostFilterEvents : System.Collections.IDictionary -> unit
Protected Overridable Sub PostFilterEvents (events As IDictionary)
- events
- IDictionary
组件的类的事件。
此方法提供了一种更改或删除通过 TypeDescriptor公开的事件字典中的项的方法。
事件字典中的键是事件的名称。 对象的类型 PropertyDescriptor为 。 此方法在 方法之后 PreFilterEvents 立即调用。
可以直接筛选可通过 events
参数访问的字典,也可以使其保持不变。 如果替代此方法,请在执行自己的筛选后调用基本实现。 此外,不得删除 方法中的 PostFilterEvents(IDictionary) 项。 请改为更改属性以隐藏项。 还可以删除 方法中的 PreFilterEvents(IDictionary) 项。
产品 | 版本 |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |