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
    형식: Expr

    try 식의 본문입니다.

  • filterVar
    형식: Var

  • filterBody
    형식: Expr

  • catchVar
    형식: Var

    catch된 예외에 바인딩할 변수입니다.

  • catchBody
    형식: Expr

    예외가 catch될 때 계산되는 식입니다.

반환 값

결과 식입니다.

플랫폼

Windows 7, Windows Vista SP2, Windows XP SP3, Windows XP x64 SP2, Windows Server 2008 R2, Windows Server 2008 SP2, Windows Server 2003 SP2

버전 정보

F# 런타임

지원되는 버전: 2.0, 4.0

Silverlight

지원되는 버전: 3

참고 항목

참조

Quotations.Expr 클래스(F#)

Microsoft.FSharp.Quotations 네임스페이스(F#)