SwitchExpression.Update Metod

Definition

Skapar ett nytt uttryck som liknar det här, men som använder de angivna underordnade uttrycken. Om alla underordnade är likadana returneras det här uttrycket.

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

Parametrar

switchValue
Expression

Resultatets SwitchValue egenskap.

cases
IEnumerable<SwitchCase>

Resultatets Cases egenskap.

defaultBody
Expression

Resultatets DefaultBody egenskap.

Returer

Det här uttrycket om inga underordnade objekt ändras eller ett uttryck med de uppdaterade underordnade.

Gäller för