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

Expression.TryFinally 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 finally block and no catch statements.

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

public static TryExpression TryFinally(
	Expression body,
	Expression finally
)

Parameters

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

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft