Expression.TryFinally(Expression, Expression) Metoda

Definicja

TryExpression Tworzy reprezentujący blok try z blokiem finally i bez instrukcji 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

Parametry

body
Expression

Treść bloku try.

finally
Expression

Treść końcu bloku.

Zwraca

Utworzony element TryExpression.

Dotyczy