ComponentOne Xamarin.Android
FromString Method


C1.CollectionView Assembly > C1.CollectionView Namespace > FilterExpression Class : FromString Method
The query to be filtered.
The fields taken into account in the filter operation.
If set to true treat spaces as and operator.
If set to true the case will be taken into account.
If set to true the whole word will have to be matched.
Creates a FilterExpression from a string.
Syntax
'Declaration
 
Public Shared Function FromString( _
   ByVal query As String, _
   ByVal fields As IEnumerable(Of String), _
   Optional ByVal treatSpacesAsAndOperator As Boolean, _
   Optional ByVal matchCase As Boolean, _
   Optional ByVal matchWholeWord As Boolean _
) As FilterExpression
'Usage
 
Dim query As String
Dim fields As IEnumerable(Of String)
Dim treatSpacesAsAndOperator As Boolean
Dim matchCase As Boolean
Dim matchWholeWord As Boolean
Dim value As FilterExpression
 
value = FilterExpression.FromString(query, fields, treatSpacesAsAndOperator, matchCase, matchWholeWord)

Parameters

query
The query to be filtered.
fields
The fields taken into account in the filter operation.
treatSpacesAsAndOperator
If set to true treat spaces as and operator.
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.
See Also

Reference

FilterExpression Class
FilterExpression Members