FSharpType.IsExceptionRepresentation 方法 (F#)
如果指定的型別是 F# 例外狀況宣告的表現形式,則傳回true。
**命名空間/模組路徑:**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選擇性的繫結旗標。
傳回值
如果所檢查的型別是 F# 例外狀況,傳回true。
平台
Windows 8 中, Windows 7, Windows Server 2012 上, Windows Server 2008 R2
版本資訊
F# 核心程式庫版本
支援版本:2.0, 4.0,可攜式執行檔 (PE)。