SyntaxFactory.WhileOrUntilClause 方法

定义

表示 Do 或 Loop 语句中的“While 表达式”或“Until 表达式”。 子句的 Kind 可以是“WhileClause”或“UntilClause”,以指示子句的类型。

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::WhileOrUntilClauseSyntax ^ WhileOrUntilClause(Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind, Microsoft::CodeAnalysis::SyntaxToken whileOrUntilKeyword, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ condition);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.WhileOrUntilClauseSyntax WhileOrUntilClause (Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxToken whileOrUntilKeyword, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax condition);
static member WhileOrUntilClause : Microsoft.CodeAnalysis.VisualBasic.SyntaxKind * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.WhileOrUntilClauseSyntax
Public Shared Function WhileOrUntilClause (kind As SyntaxKind, whileOrUntilKeyword As SyntaxToken, condition As ExpressionSyntax) As WhileOrUntilClauseSyntax

参数

kind
SyntaxKind

一个 SyntaxKind ,表示 WhileOrUntilClauseSyntax 的特定类型。 WhileClause 之一,UntilClause。

whileOrUntilKeyword
SyntaxToken

“While”或“Until”关键字 (keyword) 。

condition
ExpressionSyntax

While 或 Until 之后的布尔表达式。

返回

适用于