Share via


FilterQueryValidator.ValidateBinaryOperatorNode Method (BinaryOperatorNode, ODataValidationSettings)

 

override this method to restrict the binary operators inside the filter query. That includes all the logical operators except 'not' and all math operators.

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

Syntax

public virtual void ValidateBinaryOperatorNode(
    BinaryOperatorNode binaryOperatorNode,
    ODataValidationSettings settings
)
public:
virtual void ValidateBinaryOperatorNode(
    BinaryOperatorNode^ binaryOperatorNode,
    ODataValidationSettings^ settings
)
abstract ValidateBinaryOperatorNode : 
        binaryOperatorNode:BinaryOperatorNode *
        settings:ODataValidationSettings -> unit
override ValidateBinaryOperatorNode : 
        binaryOperatorNode:BinaryOperatorNode *
        settings:ODataValidationSettings -> unit
Public Overridable Sub ValidateBinaryOperatorNode (
    binaryOperatorNode 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