Expr.TryWith 메서드(F#)
예외 필터링 및 catch를 위해 try...with 구문을 나타내는 식을 작성합니다.
네임스페이스/모듈 경로: Microsoft.FSharp.Quotations
어셈블리: FSharp.Core(FSharp.Core.dll)
// Signature:
static member TryWith : Expr * Var * Expr * Var * Expr -> Expr
// Usage:
Expr.TryWith (body, filterVar, filterBody, catchVar, catchBody)
매개 변수
body
형식: Exprtry 식의 본문입니다.
filterVar
형식: VarfilterBody
형식: ExprcatchVar
형식: Varcatch된 예외에 바인딩할 변수입니다.
catchBody
형식: Expr예외가 catch될 때 계산되는 식입니다.
반환 값
결과 식입니다.
플랫폼
Windows Windows 서버 2012, Windows Server 2008 R2, Windows 7, 8
버전 정보
F# 코어 라이브러리 버전
지원: 2.0, 4.0, 노트북