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.Creates a TryExpression representing a try block with a finally block and no catch statements.

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.The body of the try block.

finally
Expression

Corps du bloc Finally.The body of the finally block.

Retours

Élément TryExpression créé.The created TryExpression.

S’applique à