System.ComponentModel.Design.ITypeDescriptorFilterService.FilterEvents Method

Filters the events that a component exposes through a System.ComponentModel.TypeDescriptor.

Syntax

public bool FilterEvents (System.ComponentModel.IComponent component, IDictionary events)

Parameters

component
The component to filter events for.
events
A dictionary of events that can be modified.

Returns

true if the set of filtered events is to be cached; false if the filter service must query again.

Remarks

This method is called when a user requests a set of events for a component. The events are added to the dictionary with the event names as the keys and the corresponding System.ComponentModel.EventDescriptor objects as the values. Implementers of this service can add, remove, or alter event entries in the dictionary.

Requirements

Namespace: System.ComponentModel.Design
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0