Condividi tramite


Expression.TryFinally(Expression, Expression) Metodo

Definizione

Crea un oggetto TryExpression che rappresenta un blocco try con un blocco finally e nessuna istruzione 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

Parametri

body
Expression

Corpo del blocco try.

finally
Expression

Corpo del blocco finally.

Restituisce

Oggetto TryExpression creato.

Si applica a