UnaryOperatorType Enum

Enumerates unary operator types.

Namespace: DevExpress.Data.Filtering

Assembly: DevExpress.Data.v21.1.dll

Declaration

public enum UnaryOperatorType

Members

Name Description
BitwiseNot

Represents the bitwise NOT operator.

To create the bitwise NOT operator using the CriteriaOperator.Parse method use the following syntax:

CriteriaOperator.Parse(“~Field1”)

Plus

Represents the unary plus (+) operator.

Minus

Represents the unary negation (-) operator.

To create the unary negation operator using the CriteriaOperator.Parse method use the following syntax:

CriteriaOperator.Parse(“-Field1 = -10”)

Not

Represents the logical NOT.

To create the logical NOT operator using the CriteriaOperator.Parse method use the following syntax:

CriteriaOperator.Parse(“NOT ((Field1 = A) OR (Field1 = B))”)

IsNull

Represents the operator which determines whether or not a given expression is NULL.

To create the is-null operator using the CriteriaOperator.Parse method use the following syntax:

CriteriaOperator.Parse(“Field1 IS NULL”)

Remarks

The UnaryOperatorType enumeration contains unary operator types that can be used to create expressions via the UnaryOperator objects.

See Also