SyntaxFactory.ForEachVariableStatement 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ForEachVariableStatement(ExpressionSyntax, ExpressionSyntax, StatementSyntax) |
建立新的 ForEachVariableStatementSyntax 實例。 |
ForEachVariableStatement(SyntaxList<AttributeListSyntax>, ExpressionSyntax, ExpressionSyntax, StatementSyntax) |
建立新的 ForEachVariableStatementSyntax 實例。 |
ForEachVariableStatement(SyntaxToken, SyntaxToken, ExpressionSyntax, SyntaxToken, ExpressionSyntax, SyntaxToken, StatementSyntax) |
建立新的 ForEachVariableStatementSyntax 實例。 |
ForEachVariableStatement(SyntaxToken, SyntaxToken, SyntaxToken, ExpressionSyntax, SyntaxToken, ExpressionSyntax, SyntaxToken, StatementSyntax) |
建立新的 ForEachVariableStatementSyntax 實例。 |
ForEachVariableStatement(SyntaxList<AttributeListSyntax>, SyntaxToken, SyntaxToken, SyntaxToken, ExpressionSyntax, SyntaxToken, ExpressionSyntax, SyntaxToken, StatementSyntax) |
建立新的 ForEachVariableStatementSyntax 實例。 |
ForEachVariableStatement(ExpressionSyntax, ExpressionSyntax, StatementSyntax)
建立新的 ForEachVariableStatementSyntax 實例。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::ForEachVariableStatementSyntax ^ ForEachVariableStatement(Microsoft::CodeAnalysis::CSharp::Syntax::ExpressionSyntax ^ variable, Microsoft::CodeAnalysis::CSharp::Syntax::ExpressionSyntax ^ expression, Microsoft::CodeAnalysis::CSharp::Syntax::StatementSyntax ^ statement);
public static Microsoft.CodeAnalysis.CSharp.Syntax.ForEachVariableStatementSyntax ForEachVariableStatement (Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax variable, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expression, Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax statement);
static member ForEachVariableStatement : Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.ForEachVariableStatementSyntax
Public Shared Function ForEachVariableStatement (variable As ExpressionSyntax, expression As ExpressionSyntax, statement As StatementSyntax) As ForEachVariableStatementSyntax
參數
- variable
- ExpressionSyntax
- expression
- ExpressionSyntax
- statement
- StatementSyntax
傳回
適用於
ForEachVariableStatement(SyntaxList<AttributeListSyntax>, ExpressionSyntax, ExpressionSyntax, StatementSyntax)
建立新的 ForEachVariableStatementSyntax 實例。
public static Microsoft.CodeAnalysis.CSharp.Syntax.ForEachVariableStatementSyntax ForEachVariableStatement (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax variable, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expression, Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax statement);
static member ForEachVariableStatement : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.ForEachVariableStatementSyntax
Public Shared Function ForEachVariableStatement (attributeLists As SyntaxList(Of AttributeListSyntax), variable As ExpressionSyntax, expression As ExpressionSyntax, statement As StatementSyntax) As ForEachVariableStatementSyntax
參數
- attributeLists
- SyntaxList<AttributeListSyntax>
- variable
- ExpressionSyntax
- expression
- ExpressionSyntax
- statement
- StatementSyntax
傳回
適用於
ForEachVariableStatement(SyntaxToken, SyntaxToken, ExpressionSyntax, SyntaxToken, ExpressionSyntax, SyntaxToken, StatementSyntax)
建立新的 ForEachVariableStatementSyntax 實例。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::ForEachVariableStatementSyntax ^ ForEachVariableStatement(Microsoft::CodeAnalysis::SyntaxToken forEachKeyword, Microsoft::CodeAnalysis::SyntaxToken openParenToken, Microsoft::CodeAnalysis::CSharp::Syntax::ExpressionSyntax ^ variable, Microsoft::CodeAnalysis::SyntaxToken inKeyword, Microsoft::CodeAnalysis::CSharp::Syntax::ExpressionSyntax ^ expression, Microsoft::CodeAnalysis::SyntaxToken closeParenToken, Microsoft::CodeAnalysis::CSharp::Syntax::StatementSyntax ^ statement);
public static Microsoft.CodeAnalysis.CSharp.Syntax.ForEachVariableStatementSyntax ForEachVariableStatement (Microsoft.CodeAnalysis.SyntaxToken forEachKeyword, Microsoft.CodeAnalysis.SyntaxToken openParenToken, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax variable, Microsoft.CodeAnalysis.SyntaxToken inKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expression, Microsoft.CodeAnalysis.SyntaxToken closeParenToken, Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax statement);
static member ForEachVariableStatement : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.ForEachVariableStatementSyntax
Public Shared Function ForEachVariableStatement (forEachKeyword As SyntaxToken, openParenToken As SyntaxToken, variable As ExpressionSyntax, inKeyword As SyntaxToken, expression As ExpressionSyntax, closeParenToken As SyntaxToken, statement As StatementSyntax) As ForEachVariableStatementSyntax
參數
- forEachKeyword
- SyntaxToken
- openParenToken
- SyntaxToken
- variable
- ExpressionSyntax
- inKeyword
- SyntaxToken
- expression
- ExpressionSyntax
- closeParenToken
- SyntaxToken
- statement
- StatementSyntax
傳回
適用於
ForEachVariableStatement(SyntaxToken, SyntaxToken, SyntaxToken, ExpressionSyntax, SyntaxToken, ExpressionSyntax, SyntaxToken, StatementSyntax)
建立新的 ForEachVariableStatementSyntax 實例。
public static Microsoft.CodeAnalysis.CSharp.Syntax.ForEachVariableStatementSyntax ForEachVariableStatement (Microsoft.CodeAnalysis.SyntaxToken awaitKeyword, Microsoft.CodeAnalysis.SyntaxToken forEachKeyword, Microsoft.CodeAnalysis.SyntaxToken openParenToken, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax variable, Microsoft.CodeAnalysis.SyntaxToken inKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expression, Microsoft.CodeAnalysis.SyntaxToken closeParenToken, Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax statement);
static member ForEachVariableStatement : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.ForEachVariableStatementSyntax
Public Shared Function ForEachVariableStatement (awaitKeyword As SyntaxToken, forEachKeyword As SyntaxToken, openParenToken As SyntaxToken, variable As ExpressionSyntax, inKeyword As SyntaxToken, expression As ExpressionSyntax, closeParenToken As SyntaxToken, statement As StatementSyntax) As ForEachVariableStatementSyntax
參數
- awaitKeyword
- SyntaxToken
- forEachKeyword
- SyntaxToken
- openParenToken
- SyntaxToken
- variable
- ExpressionSyntax
- inKeyword
- SyntaxToken
- expression
- ExpressionSyntax
- closeParenToken
- SyntaxToken
- statement
- StatementSyntax
傳回
適用於
ForEachVariableStatement(SyntaxList<AttributeListSyntax>, SyntaxToken, SyntaxToken, SyntaxToken, ExpressionSyntax, SyntaxToken, ExpressionSyntax, SyntaxToken, StatementSyntax)
建立新的 ForEachVariableStatementSyntax 實例。
public static Microsoft.CodeAnalysis.CSharp.Syntax.ForEachVariableStatementSyntax ForEachVariableStatement (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxToken awaitKeyword, Microsoft.CodeAnalysis.SyntaxToken forEachKeyword, Microsoft.CodeAnalysis.SyntaxToken openParenToken, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax variable, Microsoft.CodeAnalysis.SyntaxToken inKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expression, Microsoft.CodeAnalysis.SyntaxToken closeParenToken, Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax statement);
static member ForEachVariableStatement : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.ForEachVariableStatementSyntax
Public Shared Function ForEachVariableStatement (attributeLists As SyntaxList(Of AttributeListSyntax), awaitKeyword As SyntaxToken, forEachKeyword As SyntaxToken, openParenToken As SyntaxToken, variable As ExpressionSyntax, inKeyword As SyntaxToken, expression As ExpressionSyntax, closeParenToken As SyntaxToken, statement As StatementSyntax) As ForEachVariableStatementSyntax
參數
- attributeLists
- SyntaxList<AttributeListSyntax>
- awaitKeyword
- SyntaxToken
- forEachKeyword
- SyntaxToken
- openParenToken
- SyntaxToken
- variable
- ExpressionSyntax
- inKeyword
- SyntaxToken
- expression
- ExpressionSyntax
- closeParenToken
- SyntaxToken
- statement
- StatementSyntax