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