SwitchExpression.Update Método

Definición

Crea una nueva expresión que es como esta, pero usa el elemento secundario proporcionado. Si todos los elementos secundarios son iguales, devolverá esta expresión.

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

Parámetros

switchValue
Expression

Propiedad SwitchValue del resultado.

cases
IEnumerable<SwitchCase>

Propiedad Cases del resultado.

defaultBody
Expression

Propiedad DefaultBody del resultado.

Devoluciones

Esta expresión si no se cambió ningún elemento secundario o una expresión con los elementos secundarios actualizados.

Se aplica a