Expression.TryFinally(Expression, Expression) Methode

Definitie

Hiermee maakt u een TryExpression try-blok met een laatste blok en geen catch-instructies.

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

Parameters

body
Expression

De hoofdtekst van het try-blok.

finally
Expression

Het lichaam van het laatste blok.

Retouren

De gemaakte TryExpression.

Van toepassing op