Filter Property

CollectionView.Filter Property

 

Gets or sets a method used to determine if an item is suitable for inclusion in the view.

Namespace:   System.Windows.Data
Assembly:  PresentationFramework (in PresentationFramework.dll)

public virtual Predicate<object> Filter { get; set; }

Property Value

Type: System.Predicate<Object>

A delegate that represents the method used to determine if an item is suitable for inclusion in the view.

Exception Condition
NotSupportedException

The current implementation does not support filtering.

Simpler implementations do not support filtering and throw a NotSupportedException. Use the CanFilter property to test if filtering is supported before assigning this property with a non-null value.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft