Creates a
FilterExpression from a query string.
Syntax
'Declaration
<ExtensionAttribute()>
Public Shared Function CreateFilterFromString(Of As Class)( _
ByVal As ICollectionView(Of T), _
ByVal As String, _
Optional ByVal treatSpacesAsAndOperator As Boolean, _
Optional ByVal As Boolean, _
Optional ByVal As Boolean, _
Optional ByVal As Boolean _
) As FilterExpression
'Usage
Dim collectionView As ICollectionView(Of T)
Dim query As String
Dim treatSpacesAsAndOperator As Boolean
Dim matchNumbers As Boolean
Dim matchCase As Boolean
Dim matchWholeWord As Boolean
Dim value As FilterExpression
value = ICollectionViewEx.CreateFilterFromString(Of T)(collectionView, query, treatSpacesAsAndOperator, matchNumbers, matchCase, matchWholeWord)
Parameters
- collectionView
- The collection view.
- query
- The query string to be filtered.
- treatSpacesAsAndOperator
- if set to
true
treat spaces as and operator. - matchNumbers
- if set to
true
it will look into numeric fields. - matchCase
- If set to
true
the case will be taken into account. - matchWholeWord
- If set to
true
the whole word will have to be matched.
Type Parameters
- T
See Also