In This Article

IDataFilter Interface

Provides the base requirements for an object that can filter data.

public interface IDataFilter

Properties

IsEnabled

Gets or sets whether the filter is enabled.

bool IsEnabled { get; set; }

Property Value

bool:

true if the filter is enabled; otherwise, false.

Methods

Filter(object, object)

Examines the specified item to see if meets filter conditions.

DataFilterResult Filter(object item, object context)
Parameter Type Description
item object

The item to examine.

context object

An optional object that provides contextual information for the filter request.

Returns

DataFilterResult:

A DataFilterResult that indicates the filter result.

Events

FilterChanged

Occurs when the filter has changed and should be reapplied.

event EventHandler FilterChanged

Event Type

EventHandler