Class AnyExpression

The AnyExpression class represents an operation evaluating whether a given field contains any value from the specified collection. When applied to a collection field, the expression evaluates whether the collection contains any of the values from the specified collection. When used on a primitive field, the expression evaluates whether the field is equal to any of the values from the specified collection.

Inheritance
System.Object
AnyExpression
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Social.Common
Assembly: EPiServer.Social.Common.dll
Version: 1.5.4
Syntax
public class AnyExpression : BinaryExpression

Constructors

AnyExpression(FieldExpression, EnumerableValueExpression)

Constructor

Declaration
public AnyExpression(FieldExpression left, EnumerableValueExpression right)
Parameters
Type Name Description
FieldExpression left

Left operand in this expression

EnumerableValueExpression right

Right operand in this expression

AnyExpression(FieldExpression, IEnumerable<Boolean>)

Constructor

Declaration
public AnyExpression(FieldExpression field, IEnumerable<bool> values)
Parameters
Type Name Description
FieldExpression field

Expression identifying the field to be evaluated

System.Collections.Generic.IEnumerable<System.Boolean> values

Values to identify within the field

Exceptions
Type Condition
System.ArgumentException

Thrown when the values list is empty.

AnyExpression(FieldExpression, IEnumerable<DateTime>)

Constructor

Declaration
public AnyExpression(FieldExpression field, IEnumerable<DateTime> values)
Parameters
Type Name Description
FieldExpression field

Expression identifying the field to be evaluated

System.Collections.Generic.IEnumerable<System.DateTime> values

Values to identify within the field

Exceptions
Type Condition
System.ArgumentException

Thrown when the values list is empty.

AnyExpression(FieldExpression, IEnumerable<Double>)

Constructor

Declaration
public AnyExpression(FieldExpression field, IEnumerable<double> values)
Parameters
Type Name Description
FieldExpression field

Expression identifying the field to be evaluated

System.Collections.Generic.IEnumerable<System.Double> values

Values to identify within the field

Exceptions
Type Condition
System.ArgumentException

Thrown when the values list is empty.

AnyExpression(FieldExpression, IEnumerable<Int64>)

Constructor

Declaration
public AnyExpression(FieldExpression field, IEnumerable<long> values)
Parameters
Type Name Description
FieldExpression field

Expression identifying the field to be evaluated

System.Collections.Generic.IEnumerable<System.Int64> values

Values to identify within the field

Exceptions
Type Condition
System.ArgumentException

Thrown when the values list is empty.

AnyExpression(FieldExpression, IEnumerable<String>)

Constructor

Declaration
public AnyExpression(FieldExpression field, IEnumerable<string> values)
Parameters
Type Name Description
FieldExpression field

Expression identifying the field to be evaluated

System.Collections.Generic.IEnumerable<System.String> values

Values to identify within the field

Exceptions
Type Condition
System.ArgumentException

Thrown when the values list is empty.

Methods

Accept(FilterExpressionVisitor)

Accepts a visitor capable of interpreting this expression.

Declaration
public override void Accept(FilterExpressionVisitor visitor)
Parameters
Type Name Description
FilterExpressionVisitor visitor

Visitor to be accepted

Overrides

Extension Methods

arrow_upward