Expression.TryFinally(Expression, Expression) Метод

Определение

Создает объект TryExpression, представляющий блок try с блоком finally и без операторов 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

Параметры

body
Expression

Тело блока try.

finally
Expression

Тело блока finally.

Возвращаемое значение

Созданный TryExpression.

Применяется к