ForEachStatementSyntax.WithExpression(ExpressionSyntax) 方法

定义

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

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::ForEachStatementSyntax ^ WithExpression(Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ expression);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.ForEachStatementSyntax WithExpression (Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax expression);
member this.WithExpression : Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ForEachStatementSyntax
Public Function WithExpression (expression As ExpressionSyntax) As ForEachStatementSyntax

参数

expression
ExpressionSyntax

返回

适用于