SwitchExpression.Update(Expression, IEnumerable<SwitchCase>, Expression) Método

Definição

Cria uma nova expressão que é parecida com esta, mas usando os filhos fornecidos.Creates a new expression that is like this one, but using the supplied children. Se todos os filhos forem os mesmos, ela retornará esta expressão.If all of the children are the same, it will return this expression.

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

A propriedade SwitchValue do resultado.The SwitchValue property of the result.

cases
IEnumerable<SwitchCase>

A propriedade Cases do resultado.The Cases property of the result.

defaultBody
Expression

A propriedade DefaultBody do resultado.The DefaultBody property of the result.

Retornos

SwitchExpression

Essa expressão se nenhum filho foi alterado ou uma expressão com os filhos atualizados.This expression if no children are changed or an expression with the updated children.

Aplica-se a