共用方式為


FSharpType.IsExceptionRepresentation 方法 (F#)

傳回 true如果指定的型別是表示 一個 F # 例外狀況宣告。

命名空間/模組路徑: Microsoft.FSharp.Reflection

組件:FSharp.Core (在 FSharp.Core.dll 中)

// Signature:
static member IsExceptionRepresentation : Type * ?BindingFlags -> bool

// Usage:
FSharpType.IsExceptionRepresentation (exceptionType)
FSharpType.IsExceptionRepresentation (exceptionType, bindingFlags = bindingFlags)

參數

  • exceptionType
    型別:Type

    要檢查的型別。

  • bindingFlags
    型別:BindingFlags

    選擇性的繫結旗標。

傳回值

傳回 true如果已核取,型別是 一個 F # 的例外狀況。

平台

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

請參閱

參考

Reflection.FSharpType 類別 (F#)

Microsoft.FSharp.Reflection 命名空間 (F#)