FilterQueryValidator.ValidateArithmeticOperator Method (BinaryOperatorNode, ODataValidationSettings)
Override this method for the Arithmetic operators, including add, sub, mul, div, mod.
Namespace: System.Web.Http.OData.Query.Validators
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
public virtual void ValidateArithmeticOperator(
BinaryOperatorNode binaryNode,
ODataValidationSettings settings
)
public:
virtual void ValidateArithmeticOperator(
BinaryOperatorNode^ binaryNode,
ODataValidationSettings^ settings
)
abstract ValidateArithmeticOperator :
binaryNode:BinaryOperatorNode *
settings:ODataValidationSettings -> unit
override ValidateArithmeticOperator :
binaryNode:BinaryOperatorNode *
settings:ODataValidationSettings -> unit
Public Overridable Sub ValidateArithmeticOperator (
binaryNode As BinaryOperatorNode,
settings As ODataValidationSettings
)
Parameters
- binaryNode
Type: Microsoft.Data.OData.Query.SemanticAst.BinaryOperatorNode
- settings
Type: System.Web.Http.OData.Query.ODataValidationSettings
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.Http.OData.Query.Validators Namespace
Return to top