共用方式為


SyntaxFactory.AddAssignmentStatement 方法

定義

多載

AddAssignmentStatement(ExpressionSyntax, ExpressionSyntax)

表示簡單、複合或 Mid 指派語句。 您可以藉由檢查 Kind 來判斷哪一個。

AddAssignmentStatement(ExpressionSyntax, SyntaxToken, ExpressionSyntax)

表示簡單、複合或 Mid 指派語句。 您可以藉由檢查 Kind 來判斷哪一個。

AddAssignmentStatement(ExpressionSyntax, ExpressionSyntax)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

表示簡單、複合或 Mid 指派語句。 您可以藉由檢查 Kind 來判斷哪一個。

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::AssignmentStatementSyntax ^ AddAssignmentStatement(Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ left, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ right);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.AssignmentStatementSyntax AddAssignmentStatement (Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax left, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax right);
static member AddAssignmentStatement : Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.AssignmentStatementSyntax
Public Shared Function AddAssignmentStatement (left As ExpressionSyntax, right As ExpressionSyntax) As AssignmentStatementSyntax

參數

left
ExpressionSyntax

目標 (指派的左側) 。

right
ExpressionSyntax

指派的右側來源 () 。

傳回

適用於

AddAssignmentStatement(ExpressionSyntax, SyntaxToken, ExpressionSyntax)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

表示簡單、複合或 Mid 指派語句。 您可以藉由檢查 Kind 來判斷哪一個。

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

參數

left
ExpressionSyntax

目標 (指派的左側) 。

operatorToken
SyntaxToken

指派語句中使用的運算符。 其中一個是 “=”、“+=”、“-=”、“*=”、“/=”、“=”、“^=”、“&=”、“<<=” 或 “>>=”。

right
ExpressionSyntax

指派的右側來源 () 。

傳回

適用於