Share via


SetFilter Method

The SetFilter method of the IFilterConsumer interface responds to a request to set a filter from the SetFilter event of a provider Web Part.

Parameters

sender   A reference to the object that implements the IFilterProvider interface on the provider Web Part.

setFilterEventArgs   A SetFilterEventArgs object received from the SetFilter event which describes the filter to be used for the consumer Web Part.

Example

The following code example shows an implementation of the SetFilter event handler. This code example is part of a larger example provided for the IFilterConsumer interface.

Requirements

Platforms: Microsoft Windows Server 2003

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