SetFilterEventHandler Delegate

The SetFilterEventHandler delegate represents the method that will handle the SetFilterEvent event fired by an object of the WebPart class that implements the IFilterProvider interface.

The declaration of your event handler must have the same parameters as the SetFilterEventHandler delegate declaration.

sender  The source of the event, the Web Part.

e  A SetFilterEventArgs object that contains the event data.

Remarks

When you create a SetFilterEventHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate.

Example

The following code example shows the declaration of an event of type SetFilterEventHandler from a WebPart class that implements the IFilterProvider interface. A code sample that shows the implementation of the event handler is in the SetFilter event topic. A code sample that shows the full implementation of the IFilterProvider interface is in the IFilterProvider topic.

Requirements

Namespace: Microsoft.SharePoint.WebPartPages.Communication

Platforms: Microsoft Windows Server 2003

Assembly: Microsoft SharePoint Team Services (in Microsoft.SharePoint.dll)

Security: Code Access Security The WebPartPermissions.Connections permission is required to use this member.