Expression.TryFinally(Expression, Expression) Método

Definición

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

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

Parámetros

body
Expression

Cuerpo del bloque try.

finally
Expression

Cuerpo del bloque finally.

Devoluciones

Objeto TryExpression creado.

Se aplica a