다음을 통해 공유


Expression.TryFinally(Expression, Expression) 메서드

정의

catch 문은 사용하지 않고 finally 블록을 하나 사용하여 try 블록을 나타내는 TryExpression을 만듭니다.

public:
 static System::Linq::Expressions::TryExpression ^ TryFinally(System::Linq::Expressions::Expression ^ body, System::Linq::Expressions::Expression ^ finally);
public static System.Linq.Expressions.TryExpression TryFinally (System.Linq.Expressions.Expression body, System.Linq.Expressions.Expression finally);
public static System.Linq.Expressions.TryExpression TryFinally (System.Linq.Expressions.Expression body, System.Linq.Expressions.Expression? finally);
static member TryFinally : System.Linq.Expressions.Expression * System.Linq.Expressions.Expression -> System.Linq.Expressions.TryExpression
Public Shared Function TryFinally (body As Expression, finally As Expression) As TryExpression

매개 변수

body
Expression

try 블록의 본문입니다.

finally
Expression

finally 블록의 본문입니다.

반환

만든 TryExpression입니다.

적용 대상