Partilhar via


Expression.TryFinally(Expression, Expression) Método

Definição

Cria uma TryExpression representando um bloco try com um bloco finally e nenhuma instrução 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

O corpo do bloco try.

finally
Expression

O corpo do bloco finally.

Retornos

O TryExpression criado.

Aplica-se a