Partilhar via


SyntaxFactory.AssignmentStatement Método

Definição

Representa uma instrução de atribuição simples, composta ou mid. Qual delas pode ser determinada verificando o Tipo.

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

Parâmetros

kind
SyntaxKind

Um SyntaxKind que representa o tipo específico de AssignmentStatementSyntax. Um de SimpleAssignmentStatement, MidAssignmentStatement, AddAssignmentStatement, SubtractAssignmentStatement, MultiplyAssignmentStatement, DivideAssignmentStatement, IntegerDivideAssignmentStatement, ExponentiateAssignmentStatement, LeftShiftAssignmentStatement, RightShiftAssignmentStatement, ConcatenateAssignmentStatement.

left
ExpressionSyntax

O destino (lado esquerdo) da atribuição.

operatorToken
SyntaxToken

O operador usado na instrução de atribuição. Um de "=", "+=", "-=", "*=", "/=", "=", "^=", "&=", "<<=" ou ">>=".

right
ExpressionSyntax

A origem (lado direito) da atribuição.

Retornos

Aplica-se a