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 屬性。

傳回

SwitchCase

如果未變更任何子系,則為這個運算式;否則為已更新子系的運算式。

適用於