Partager via


Expression.TryFinally(Expression, Expression) Méthode

Définition

Crée un TryExpression qui représente un bloc Try avec un bloc Finally et aucune instruction 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

Paramètres

body
Expression

Corps du bloc Try.

finally
Expression

Corps du bloc Finally.

Retours

Élément TryExpression créé.

S’applique à