Bagikan melalui


Expression.TryFault(Expression, Expression) Metode

Definisi

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

public:
 static System::Linq::Expressions::TryExpression ^ TryFault(System::Linq::Expressions::Expression ^ body, System::Linq::Expressions::Expression ^ fault);
public static System.Linq.Expressions.TryExpression TryFault (System.Linq.Expressions.Expression body, System.Linq.Expressions.Expression fault);
public static System.Linq.Expressions.TryExpression TryFault (System.Linq.Expressions.Expression body, System.Linq.Expressions.Expression? fault);
static member TryFault : System.Linq.Expressions.Expression * System.Linq.Expressions.Expression -> System.Linq.Expressions.TryExpression
Public Shared Function TryFault (body As Expression, fault As Expression) As TryExpression

Parameter

body
Expression

Isi blok percobaan.

fault
Expression

Tubuh blok kesalahan.

Mengembalikan

yang dibuat TryExpression.

Berlaku untuk