Share via


WhileBlockSyntax.WithWhileStatement(WhileStatementSyntax) Method

Definition

Returns a copy of this with the WhileStatement property changed to the specified value. Returns this instance if the specified value is the same as the current value.

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

Parameters

whileStatement
WhileStatementSyntax

Returns

Applies to