Condividi tramite


Expression.TryFault(Expression, Expression) Metodo

Definizione

Crea un oggetto a TryExpression che rappresenta un blocco try con un blocco fault e nessuna istruzione catch.

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

Parametri

body
Expression

Corpo del blocco try.

fault
Expression

Corpo del blocco fault.

Restituisce

Oggetto TryExpression creato.

Si applica a