Show / Hide Table of Contents

Class ArrayFunction

A class for generating query functions that operate on array types

Inheritance
System.Object
ArrayFunction
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Couchbase.Lite.Query
Assembly: Couchbase.Lite.dll
Syntax
public static class ArrayFunction

Methods

| Improve this Doc View Source

Contains(IExpression, IExpression)

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

Declaration
public static IExpression Contains(IExpression expression, IExpression value)
Parameters
Type Name Description
IExpression expression

An expression that evaluates to an array (otherwise the query will fail)

IExpression value

The element to search for (either an expression or literal)

Returns
Type Description
IExpression

A function that will return true if the array contains the element, or false if it does not

| Improve this Doc View Source

Length(IExpression)

Creates a function that will get the length of an array in question

Declaration
public static IExpression Length(IExpression expression)
Parameters
Type Name Description
IExpression expression

The expression to usem when calculating (must evaluate to an array type) the result

Returns
Type Description
IExpression

A function that will get the length of the array in question

  • Improve this Doc
  • View Source
Back to top Generated by DocFX