SyntaxFactory.ForEachBlock 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ForEachBlock(ForEachStatementSyntax, SyntaxList<StatementSyntax>, NextStatementSyntax) |
表示 For Each 块,包括简介语句、正文和“下一步” (,如果包含具有多个变量的 For) ,则可以省略该块。 |
ForEachBlock(ForEachStatementSyntax) |
表示 For Each 块,包括简介语句、正文和“下一步” (,如果包含具有多个变量的 For) ,则可以省略该块。 |
ForEachBlock(ForEachStatementSyntax, SyntaxList<StatementSyntax>, NextStatementSyntax)
- 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
表示 For Each 块,包括简介语句、正文和“下一步” (,如果包含具有多个变量的 For) ,则可以省略该块。
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::ForEachBlockSyntax ^ ForEachBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::ForEachStatementSyntax ^ forEachStatement, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements, Microsoft::CodeAnalysis::VisualBasic::Syntax::NextStatementSyntax ^ nextStatement);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.ForEachBlockSyntax ForEachBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.ForEachStatementSyntax forEachStatement, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements, Microsoft.CodeAnalysis.VisualBasic.Syntax.NextStatementSyntax nextStatement);
static member ForEachBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.ForEachStatementSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> * Microsoft.CodeAnalysis.VisualBasic.Syntax.NextStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ForEachBlockSyntax
Public Shared Function ForEachBlock (forEachStatement As ForEachStatementSyntax, statements As SyntaxList(Of StatementSyntax), nextStatement As NextStatementSyntax) As ForEachBlockSyntax
参数
- forEachStatement
- ForEachStatementSyntax
开始块的 For Each 语句。
- statements
- SyntaxList<StatementSyntax>
For 或 For Each 循环中包含的语句。 这可能是空列表。
- nextStatement
- NextStatementSyntax
结束块的 Next 语句。 如果两个 For 或 For Each 语句由单个 Next 语句结束,则内部 For 将不具有 Next 语句。
返回
适用于
ForEachBlock(ForEachStatementSyntax)
- 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
表示 For Each 块,包括简介语句、正文和“下一步” (,如果包含具有多个变量的 For) ,则可以省略该块。
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::ForEachBlockSyntax ^ ForEachBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::ForEachStatementSyntax ^ forEachStatement);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.ForEachBlockSyntax ForEachBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.ForEachStatementSyntax forEachStatement);
static member ForEachBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.ForEachStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ForEachBlockSyntax
Public Shared Function ForEachBlock (forEachStatement As ForEachStatementSyntax) As ForEachBlockSyntax
参数
- forEachStatement
- ForEachStatementSyntax
开始块的 For Each 语句。