ForEachBlockSyntax.WithForEachStatement(ForEachStatementSyntax) 方法

定义

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

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::ForEachBlockSyntax ^ WithForEachStatement(Microsoft::CodeAnalysis::VisualBasic::Syntax::ForEachStatementSyntax ^ forEachStatement);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.ForEachBlockSyntax WithForEachStatement (Microsoft.CodeAnalysis.VisualBasic.Syntax.ForEachStatementSyntax forEachStatement);
member this.WithForEachStatement : Microsoft.CodeAnalysis.VisualBasic.Syntax.ForEachStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ForEachBlockSyntax
Public Function WithForEachStatement (forEachStatement As ForEachStatementSyntax) As ForEachBlockSyntax

参数

forEachStatement
ForEachStatementSyntax

返回

适用于