Share via


SyntaxFactory.AssignmentStatement Method

Definition

Represents a simple, compound, or Mid assignment statement. Which one can be determined by checking the Kind.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::AssignmentStatementSyntax ^ AssignmentStatement(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.AssignmentStatementSyntax AssignmentStatement (Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax left, Microsoft.CodeAnalysis.SyntaxToken operatorToken, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax right);
static member AssignmentStatement : Microsoft.CodeAnalysis.VisualBasic.SyntaxKind * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.AssignmentStatementSyntax
Public Shared Function AssignmentStatement (kind As SyntaxKind, left As ExpressionSyntax, operatorToken As SyntaxToken, right As ExpressionSyntax) As AssignmentStatementSyntax

Parameters

kind
SyntaxKind

A SyntaxKind representing the specific kind of AssignmentStatementSyntax. One of SimpleAssignmentStatement, MidAssignmentStatement, AddAssignmentStatement, SubtractAssignmentStatement, MultiplyAssignmentStatement, DivideAssignmentStatement, IntegerDivideAssignmentStatement, ExponentiateAssignmentStatement, LeftShiftAssignmentStatement, RightShiftAssignmentStatement, ConcatenateAssignmentStatement.

left
ExpressionSyntax

The target (left hand side) of the assignment.

operatorToken
SyntaxToken

The operator used in the assignment statement. One of "=", "+=", "-=", "*=", "/=", "=", "^=", "&=", "<<=" or ">>=".

right
ExpressionSyntax

The source (right hand side) of the assignment.

Returns

Applies to