Share via


SyntaxFactory.BinaryExpression Method

Definition

Represents a binary operator. The Kind property classifies the operators into similar kind of operators (arithmetic, relational, logical or string); the exact operation being performed is determined by the Operator property.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::BinaryExpressionSyntax ^ BinaryExpression(Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ left, Microsoft::CodeAnalysis::SyntaxToken operatorToken, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ right);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.BinaryExpressionSyntax BinaryExpression (Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax left, Microsoft.CodeAnalysis.SyntaxToken operatorToken, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax right);
static member BinaryExpression : Microsoft.CodeAnalysis.VisualBasic.SyntaxKind * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.BinaryExpressionSyntax
Public Shared Function BinaryExpression (kind As SyntaxKind, left As ExpressionSyntax, operatorToken As SyntaxToken, right As ExpressionSyntax) As BinaryExpressionSyntax

Parameters

kind
SyntaxKind

A SyntaxKind representing the specific kind of BinaryExpressionSyntax. One of AddExpression, SubtractExpression, MultiplyExpression, DivideExpression, IntegerDivideExpression, ExponentiateExpression, LeftShiftExpression, RightShiftExpression, ConcatenateExpression, ModuloExpression, EqualsExpression, NotEqualsExpression, LessThanExpression, LessThanOrEqualExpression, GreaterThanOrEqualExpression, GreaterThanExpression, IsExpression, IsNotExpression, LikeExpression, OrExpression, ExclusiveOrExpression, AndExpression, OrElseExpression, AndAlsoExpression.

left
ExpressionSyntax

The left operand.

operatorToken
SyntaxToken
right
ExpressionSyntax

The right operand.

Returns

Applies to