SyntaxFactory.WhileBlock 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
WhileBlock(WhileStatementSyntax) |
代表一段時間...End While 語句,包括 While、body 和 End While。 |
WhileBlock(WhileStatementSyntax, SyntaxList<StatementSyntax>) |
代表一段時間...End While 語句,包括 While、body 和 End While。 |
WhileBlock(WhileStatementSyntax, SyntaxList<StatementSyntax>, EndBlockStatementSyntax) |
代表一段時間...End While 語句,包括 While、body 和 End While。 |
WhileBlock(WhileStatementSyntax)
代表一段時間...End While 語句,包括 While、body 和 End While。
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::WhileBlockSyntax ^ WhileBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::WhileStatementSyntax ^ whileStatement);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.WhileBlockSyntax WhileBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.WhileStatementSyntax whileStatement);
static member WhileBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.WhileStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.WhileBlockSyntax
Public Shared Function WhileBlock (whileStatement As WhileStatementSyntax) As WhileBlockSyntax
參數
- whileStatement
- WhileStatementSyntax
開始區塊的 While 語句。
傳回
適用於
WhileBlock(WhileStatementSyntax, SyntaxList<StatementSyntax>)
代表一段時間...End While 語句,包括 While、body 和 End While。
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::WhileBlockSyntax ^ WhileBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::WhileStatementSyntax ^ whileStatement, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.WhileBlockSyntax WhileBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.WhileStatementSyntax whileStatement, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements);
static member WhileBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.WhileStatementSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.WhileBlockSyntax
Public Shared Function WhileBlock (whileStatement As WhileStatementSyntax, statements As SyntaxList(Of StatementSyntax)) As WhileBlockSyntax
參數
- whileStatement
- WhileStatementSyntax
開始區塊的 While 語句。
- statements
- SyntaxList<StatementSyntax>
While... 中包含的語句結束時間。 這可能是空的清單。
傳回
適用於
WhileBlock(WhileStatementSyntax, SyntaxList<StatementSyntax>, EndBlockStatementSyntax)
代表一段時間...End While 語句,包括 While、body 和 End While。
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::WhileBlockSyntax ^ WhileBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::WhileStatementSyntax ^ whileStatement, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements, Microsoft::CodeAnalysis::VisualBasic::Syntax::EndBlockStatementSyntax ^ endWhileStatement);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.WhileBlockSyntax WhileBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.WhileStatementSyntax whileStatement, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements, Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax endWhileStatement);
static member WhileBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.WhileStatementSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> * Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.WhileBlockSyntax
Public Shared Function WhileBlock (whileStatement As WhileStatementSyntax, statements As SyntaxList(Of StatementSyntax), endWhileStatement As EndBlockStatementSyntax) As WhileBlockSyntax
參數
- whileStatement
- WhileStatementSyntax
開始區塊的 While 語句。
- statements
- SyntaxList<StatementSyntax>
While... 中包含的語句結束時間。 這可能是空的清單。
- endWhileStatement
- EndBlockStatementSyntax
結束區塊的 End While 語句。