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 Overridable Property Filter As Predicate(Of Object)

Property Value

Type: System.Predicate(Of 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: