ComponentOne Xamarin.Android
FilterAsync<T>(ICollectionView<T>,Func<Object,Boolean>) Method


C1.CollectionView Assembly > C1.CollectionView Namespace > ICollectionViewEx Class > FilterAsync Method : FilterAsync<T>(ICollectionView<T>,Func<Object,Boolean>) Method
The collection view.
The preicate which will filter the collection.
Filters the data from a query string.
Syntax
'Declaration
 
<AsyncStateMachineAttribute(C1.CollectionView.ICollectionViewEx/d__19`1)> 
<ExtensionAttribute()> 
Public Overloads Shared Function FilterAsync(Of T As Class)( _ 
   ByVal collectionView As ICollectionView(Of T), _ 
   ByVal predicate As Func(Of Object,Boolean) _ 
) As Task
'Usage
 
Dim collectionView As ICollectionView(Of T)
Dim predicate As Func(Of Object,Boolean)
Dim value As Task
 
value = ICollectionViewEx.FilterAsync(Of T)(collectionView, predicate)
[AsyncStateMachine(C1.CollectionView.ICollectionViewEx/d__19`1)] 
[Extension()] 
public static Task FilterAsync<T>( 
   ICollectionView<T> collectionView, 
   Func<object,bool> predicate 
) 
where T: class

Parameters

collectionView
The collection view.
predicate
The preicate which will filter the collection.

Type Parameters

T
See Also

Reference

ICollectionViewEx Class
ICollectionViewEx Members
Overload List