[]
        
(Showing Draft Content)

C1.DataCollection.FilterExpression.FromString

FromString Method

FromString(string, IEnumerable<string>, bool, bool, bool)

Creates a FilterExpression from a string.

Declaration
public static FilterExpression? FromString(string query, IEnumerable<string> fields, bool treatSpacesAsAndOperator = true, bool matchCase = false, bool matchWholeWord = false)
Parameters
Type Name Description
string query

The query to be filtered.

IEnumerable<string> fields

The fields taken into account in the filter operation.

bool treatSpacesAsAndOperator

If set to true treat spaces as and operator.

bool matchCase

If set to true the case will be taken into account.

bool matchWholeWord

If set to true the whole word will have to be matched.

Returns
Type Description
FilterExpression