CollectionView::Filter Property
.NET Framework (current version)
Gets or sets a method used to determine if an item is suitable for inclusion in the view.
Assembly: PresentationFramework (in PresentationFramework.dll)
public: property Predicate<Object^>^ Filter { virtual Predicate<Object^>^ get(); virtual void set(Predicate<Object^>^ value); }
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.
Implements
ICollectionView::Filter| 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
Available since 3.0
Show: