Share via


FilterQueryValidator.ValidateLogicalOperator Method (BinaryOperatorNode, ODataValidationSettings)

 

Override this method to validate the LogicalOperators such as 'eq', 'ne', 'gt', 'ge', 'lt', 'le', 'and', 'or'. Please note that 'not' is not included here. Please override ValidateUnaryOperatorNode to customize 'not'.

Namespace:   System.Web.OData.Query.Validators
Assembly:  System.Web.OData (in System.Web.OData.dll)

Syntax

public virtual void ValidateLogicalOperator(
    BinaryOperatorNode binaryNode,
    ODataValidationSettings settings
)
public:
virtual void ValidateLogicalOperator(
    BinaryOperatorNode^ binaryNode,
    ODataValidationSettings^ settings
)
abstract ValidateLogicalOperator : 
        binaryNode:BinaryOperatorNode *
        settings:ODataValidationSettings -> unit
override ValidateLogicalOperator : 
        binaryNode:BinaryOperatorNode *
        settings:ODataValidationSettings -> unit
Public Overridable Sub ValidateLogicalOperator (
    binaryNode As BinaryOperatorNode,
    settings As ODataValidationSettings
)

Parameters

Remarks

This method is intended to be called from method overrides in subclasses. This method also supports unit-testing scenarios and is not intended to be called from user code. Call the Validate method to validate a FilterQueryOption instance.

See Also

FilterQueryValidator Class
System.Web.OData.Query.Validators Namespace

Return to top