LoopExpression.Update(LabelTarget, LabelTarget, Expression) 方法
定义
创建一个新的表达式,它类似于此表达式,但使用所提供的子级。Creates a new expression that is like this one, but using the supplied children. 如果所有子级均相同,它将返回此表达式。If all of the children are the same, it will return this expression.
public:
System::Linq::Expressions::LoopExpression ^ Update(System::Linq::Expressions::LabelTarget ^ breakLabel, System::Linq::Expressions::LabelTarget ^ continueLabel, System::Linq::Expressions::Expression ^ body);
public System.Linq.Expressions.LoopExpression Update (System.Linq.Expressions.LabelTarget breakLabel, System.Linq.Expressions.LabelTarget continueLabel, System.Linq.Expressions.Expression body);
public System.Linq.Expressions.LoopExpression Update (System.Linq.Expressions.LabelTarget? breakLabel, System.Linq.Expressions.LabelTarget? continueLabel, System.Linq.Expressions.Expression body);
member this.Update : System.Linq.Expressions.LabelTarget * System.Linq.Expressions.LabelTarget * System.Linq.Expressions.Expression -> System.Linq.Expressions.LoopExpression
Public Function Update (breakLabel As LabelTarget, continueLabel As LabelTarget, body As Expression) As LoopExpression
参数
- breakLabel
- LabelTarget
结果的 BreakLabel 属性。The BreakLabel property of the result.
- continueLabel
- LabelTarget
结果的 ContinueLabel 属性。The ContinueLabel property of the result.
- body
- Expression
返回
如果子级未更改,则为此表达式;否则为具有已更新子级的表达式。This expression if no children are changed or an expression with the updated children.