Partilhar via


Expression.TryFault(Expression, Expression) Método

Definição

Cria uma TryExpression representando um bloco try com um bloco fault e nenhuma instrução 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

Parâmetros

body
Expression

O corpo do bloco try.

fault
Expression

O corpo do bloco de falha.

Retornos

O TryExpression criado.

Aplica-se a