Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CollectionView.Filter Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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:
© 2017 Microsoft