Bagikan melalui


Expression.TryFinally(Expression, Expression) Metode

Definisi

Membuat blok percobaan yang TryExpression mewakili blok yang akhirnya diblokir dan tidak ada pernyataan tangkapan.

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

Parameter

body
Expression

Isi blok percobaan.

finally
Expression

Tubuh blok akhirnya.

Mengembalikan

Yang dibuat TryExpression.

Berlaku untuk