Compartir a través de


Expression.TryFault(Expression, Expression) Método

Definición

Crea un objeto TryExpression que representa un bloque try con un bloque fault y ninguna instrucción Catch.

public:
 static System::Linq::Expressions::TryExpression ^ TryFault(System::Linq::Expressions::Expression ^ body, System::Linq::Expressions::Expression ^ fault);
public static System.Linq.Expressions.TryExpression TryFault (System.Linq.Expressions.Expression body, System.Linq.Expressions.Expression fault);
public static System.Linq.Expressions.TryExpression TryFault (System.Linq.Expressions.Expression body, System.Linq.Expressions.Expression? fault);
static member TryFault : System.Linq.Expressions.Expression * System.Linq.Expressions.Expression -> System.Linq.Expressions.TryExpression
Public Shared Function TryFault (body As Expression, fault As Expression) As TryExpression

Parámetros

body
Expression

Cuerpo del bloque try.

fault
Expression

Cuerpo del bloque fault.

Devoluciones

Objeto TryExpression creado.

Se aplica a