Class ContainsExpression
The ContainsExpression class represents an operation evaluating whether a field contains some value. When applied to a collection field, the expression evaluates whether the collection contains a value. When used on a primitive field, the expression evaluates whether the field is equal to a value.
Inherited Members
Namespace: EPiServer.Social.Common
Assembly: EPiServer.Social.Common.dll
Version: 1.5.4Syntax
public class ContainsExpression : BinaryExpression
Constructors
ContainsExpression(FieldExpression, ValueExpression)
Constructor
Declaration
public ContainsExpression(FieldExpression left, ValueExpression right)
Parameters
| Type | Name | Description |
|---|---|---|
| FieldExpression | left | Left operand in this expression |
| ValueExpression | right | Right operand in this expression |
ContainsExpression(FieldExpression, Boolean)
Constructor
Declaration
public ContainsExpression(FieldExpression field, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| FieldExpression | field | Expression identifying the field to be evaluated |
| System.Boolean | value | Boolean value to compare for equality |
ContainsExpression(FieldExpression, DateTime)
Constructor
Declaration
public ContainsExpression(FieldExpression field, DateTime value)
Parameters
| Type | Name | Description |
|---|---|---|
| FieldExpression | field | Expression identifying the field to be evaluated |
| System.DateTime | value | DateTime value to compare for equality |
ContainsExpression(FieldExpression, Double)
Constructor
Declaration
public ContainsExpression(FieldExpression field, double value)
Parameters
| Type | Name | Description |
|---|---|---|
| FieldExpression | field | Expression identifying the field to be evaluated |
| System.Double | value | Double value to compare for equality |
ContainsExpression(FieldExpression, Int64)
Constructor
Declaration
public ContainsExpression(FieldExpression field, long value)
Parameters
| Type | Name | Description |
|---|---|---|
| FieldExpression | field | Expression identifying the field to be evaluated |
| System.Int64 | value | Integer value to identify within the field |
ContainsExpression(FieldExpression, String)
Constructor
Declaration
public ContainsExpression(FieldExpression field, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| FieldExpression | field | Expression identifying the field to be evaluated |
| System.String | value | String value to compare for equality |
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 |