'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)
public static FilterExpression FromString( string query, IEnumerable<string> fields, bool treatSpacesAsAndOperator, bool matchCase, bool 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.