語言

SwitchCase.Update(IEnumerable<Expression>, Expression) 方法

定義

會建立一個新的表達式,類似這個,但使用提供的子節點。 如果所有子節點相同,則會回傳這個表達式。

public:
 System::Linq::Expressions::SwitchCase ^ Update(System::Collections::Generic::IEnumerable<System::Linq::Expressions::Expression ^> ^ testValues, System::Linq::Expressions::Expression ^ body);
public System.Linq.Expressions.SwitchCase Update(System.Collections.Generic.IEnumerable<System.Linq.Expressions.Expression> testValues, System.Linq.Expressions.Expression body);
member this.Update : seq<System.Linq.Expressions.Expression> * System.Linq.Expressions.Expression -> System.Linq.Expressions.SwitchCase
Public Function Update (testValues As IEnumerable(Of Expression), body As Expression) As SwitchCase

參數

testValues
IEnumerable<Expression>

結果的 TestValues 性質。

body
Expression

結果的 Body 性質。

傳回

若未更改子節點,則使用更新後子節點的表達式。

適用於