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
- Boolean:
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.