共用方式為


SyntaxFactory.WhileStatement 方法

定義

多載

WhileStatement(ExpressionSyntax)

開頭為 While... 的 While 語句End While 區塊。 此語句一律會當做 WhileBlock 的 Begin 發生。

WhileStatement(SyntaxToken, ExpressionSyntax)

開頭為 While... 的 While 語句End While 區塊。 此語句一律會當做 WhileBlock 的 Begin 發生。

WhileStatement(ExpressionSyntax)

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

開頭為 While... 的 While 語句End While 區塊。 此語句一律會當做 WhileBlock 的 Begin 發生。

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::WhileStatementSyntax ^ WhileStatement(Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ condition);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.WhileStatementSyntax WhileStatement (Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax condition);
static member WhileStatement : Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.WhileStatementSyntax
Public Shared Function WhileStatement (condition As ExpressionSyntax) As WhileStatementSyntax

參數

condition
ExpressionSyntax

控制 While 迴圈的布林運算式。

傳回

適用於

WhileStatement(SyntaxToken, ExpressionSyntax)

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

開頭為 While... 的 While 語句End While 區塊。 此語句一律會當做 WhileBlock 的 Begin 發生。

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::WhileStatementSyntax ^ WhileStatement(Microsoft::CodeAnalysis::SyntaxToken whileKeyword, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ condition);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.WhileStatementSyntax WhileStatement (Microsoft.CodeAnalysis.SyntaxToken whileKeyword, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax condition);
static member WhileStatement : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.WhileStatementSyntax
Public Shared Function WhileStatement (whileKeyword As SyntaxToken, condition As ExpressionSyntax) As WhileStatementSyntax

參數

whileKeyword
SyntaxToken

「While」 關鍵字。

condition
ExpressionSyntax

控制 While 迴圈的布林運算式。

傳回

適用於