Partilhar via


SyntaxFactory.BinaryExpression Método

Definição

Representa um operador binário. A propriedade Kind classifica os operadores em um tipo semelhante de operadores (aritmética, relacional, lógica ou cadeia de caracteres); a operação exata que está sendo executada é determinada pela propriedade Operator.

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

Parâmetros

kind
SyntaxKind

Um SyntaxKind que representa o tipo específico de BinaryExpressionSyntax. Um de 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

O operando esquerdo.

operatorToken
SyntaxToken
right
ExpressionSyntax

O operando direito.

Retornos

Aplica-se a