Click or drag to resize

ArrayFunctionContains Method

Creates a function that will query if the given array expression contains the given element

Namespace:  Couchbase.Lite.Query
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0520
Syntax
C#
public static IExpression Contains(
	IExpression expression,
	IExpression value
)

Parameters

expression
Type: Couchbase.Lite.QueryIExpression
An expression that evaluates to an array (otherwise the query will fail)
value
Type: Couchbase.Lite.QueryIExpression
The element to search for (either an expression or literal)

Return Value

Type: IExpression
A function that will return true if the array contains the element, or false if it does not
See Also