Expression.TryFault(Expression, Expression) Methode

Definitie

Hiermee maakt u een TryExpression try-blok met een foutblok en geen catch-instructies.

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

Parameters

body
Expression

De hoofdtekst van het try-blok.

fault
Expression

De hoofdtekst van het foutblok.

Retouren

De gemaakte TryExpression.

Van toepassing op