SyntaxFactory.AssignmentStatement Metodo

Definizione

Rappresenta un'istruzione di assegnazione semplice, composta o mid. Quale può essere determinato controllando il 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

Parametri

kind
SyntaxKind

Oggetto SyntaxKind che rappresenta il tipo specifico di AssignmentStatementSyntax. Uno di SimpleAssignmentStatement, MidAssignmentStatement, AddAssignmentStatement, SubtractAssignmentStatement, MultiplyAssignmentStatement, DivideAssignmentStatement, IntegerDivideAssignmentStatement, ExponentiateAssignmentStatement, LeftShiftAssignmentStatement, RightShiftAssignmentStatement, ConcatenateAssignmentStatement.

left
ExpressionSyntax

Destinazione (lato sinistro) dell'assegnazione.

operatorToken
SyntaxToken

Operatore utilizzato nell'istruzione di assegnazione. Uno di "=", "+=", "-=", "*=", "/=", "=", "^=", "&=", "<<=" o ">>=".

right
ExpressionSyntax

Origine (lato destro) dell'assegnazione.

Restituisce

Si applica a