Share via


SyntaxFactory.ForEachBlock Method

Definition

Overloads

ForEachBlock(ForEachStatementSyntax, SyntaxList<StatementSyntax>, NextStatementSyntax)

Represents a For Each block, including the introducing statement, the body and the "Next" (which can be omitted if a containing For has a Next with multiple variables).

ForEachBlock(ForEachStatementSyntax)

Represents a For Each block, including the introducing statement, the body and the "Next" (which can be omitted if a containing For has a Next with multiple variables).

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

Represents a For Each block, including the introducing statement, the body and the "Next" (which can be omitted if a containing For has a Next with multiple variables).

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

Parameters

forEachStatement
ForEachStatementSyntax

The For Each statement that begins the block.

statements
SyntaxList<StatementSyntax>

The statements contained in the For or For Each loop. This might be an empty list.

nextStatement
NextStatementSyntax

The Next statement that ends the block. If two For or For Each statements are ended by a single Next statement, the inner For will not have a Next statement.

Returns

Applies to

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

Represents a For Each block, including the introducing statement, the body and the "Next" (which can be omitted if a containing For has a Next with multiple variables).

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

Parameters

forEachStatement
ForEachStatementSyntax

The For Each statement that begins the block.

Returns

Applies to