共用方式為


WhileBlockSyntax.WithWhileStatement(WhileStatementSyntax) 方法

定義

傳回這個 的複本,其中 WhileStatement 屬性已變更為指定的值。 如果指定的值與目前的值相同,則傳回這個實例。

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::WhileBlockSyntax ^ WithWhileStatement(Microsoft::CodeAnalysis::VisualBasic::Syntax::WhileStatementSyntax ^ whileStatement);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.WhileBlockSyntax WithWhileStatement (Microsoft.CodeAnalysis.VisualBasic.Syntax.WhileStatementSyntax whileStatement);
member this.WithWhileStatement : Microsoft.CodeAnalysis.VisualBasic.Syntax.WhileStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.WhileBlockSyntax
Public Function WithWhileStatement (whileStatement As WhileStatementSyntax) As WhileBlockSyntax

參數

whileStatement
WhileStatementSyntax

傳回

適用於