BinaryOperatorNode Constructor
Initializes a new instance of the BinaryOperatorNode class.
Namespace: Microsoft.Data.OData.Query.SemanticAst
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
Public Sub New ( _
operatorKind As BinaryOperatorKind, _
left As SingleValueNode, _
right As SingleValueNode _
)
'Usage
Dim operatorKind As BinaryOperatorKind
Dim left As SingleValueNode
Dim right As SingleValueNode
Dim instance As New BinaryOperatorNode(operatorKind, _
left, right)
public BinaryOperatorNode(
BinaryOperatorKind operatorKind,
SingleValueNode left,
SingleValueNode right
)
public:
BinaryOperatorNode(
BinaryOperatorKind operatorKind,
SingleValueNode^ left,
SingleValueNode^ right
)
new :
operatorKind:BinaryOperatorKind *
left:SingleValueNode *
right:SingleValueNode -> BinaryOperatorNode
public function BinaryOperatorNode(
operatorKind : BinaryOperatorKind,
left : SingleValueNode,
right : SingleValueNode
)
Parameters
- operatorKind
Type: Microsoft.Data.OData.Query.BinaryOperatorKind
The binary operator type.
- left
Type: Microsoft.Data.OData.Query.SemanticAst.SingleValueNode
The left operand.
- right
Type: Microsoft.Data.OData.Query.SemanticAst.SingleValueNode
The right operand.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Throws if the left or right inputs are null. |
| ODataException | Throws if the two operands don't have the same type. |