TryFault Method
TOC
Collapse the table of content
Expand the table of content

Expression.TryFault Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

Namespace:  System.Linq.Expressions
Assembly:  System.Core (in System.Core.dll)

'Declaration
Public Shared Function TryFault ( _
	body As Expression, _
	fault As Expression _
) As TryExpression

Parameters

body
Type: System.Linq.Expressions.Expression
The body of the try block.
fault
Type: System.Linq.Expressions.Expression
The body of the fault block.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft