Expression.TryFault(Expression, Expression) Expression.TryFault(Expression, Expression) Expression.TryFault(Expression, Expression) Expression.TryFault(Expression, Expression) Method

Definition

Creates a TryExpression representing a try block with a fault block and no catch statements.

public:
 static System::Linq::Expressions::TryExpression ^ TryFault(System::Linq::Expressions::Expression ^ body, System::Linq::Expressions::Expression ^ fault);
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
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 Expression Expression Expression

The body of the try block.

fault
Expression Expression Expression Expression

The body of the fault block.

Returns

Applies to