DoLoopBlockSyntax.WithLoopStatement(LoopStatementSyntax) 方法

定义

返回一个副本,其中包含 LoopStatement 属性更改为指定值。 如果指定的值与当前值相同,则返回此实例。

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::DoLoopBlockSyntax ^ WithLoopStatement(Microsoft::CodeAnalysis::VisualBasic::Syntax::LoopStatementSyntax ^ loopStatement);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.DoLoopBlockSyntax WithLoopStatement (Microsoft.CodeAnalysis.VisualBasic.Syntax.LoopStatementSyntax loopStatement);
member this.WithLoopStatement : Microsoft.CodeAnalysis.VisualBasic.Syntax.LoopStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.DoLoopBlockSyntax
Public Function WithLoopStatement (loopStatement As LoopStatementSyntax) As DoLoopBlockSyntax

参数

loopStatement
LoopStatementSyntax

返回

适用于