SwitchCase.Update(IEnumerable<Expression>, Expression) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會建立一個新的表達式,類似這個,但使用提供的子節點。 如果所有子節點相同,則會回傳這個表達式。
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 性質。
傳回
若未更改子節點,則使用更新後子節點的表達式。