共用方式為


Option.IsSome<'T> 屬性 (F#)

評估選項是否包含實際的值,也就是說,某些值的選項是否為Some。

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

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

// Signature:
member this.IsSome :  bool

// Usage:
option.IsSome

傳回值

如果選項的值為 Some,則傳回 true。

平台

Windows 8 中, Windows 7, Windows Server 2012 上, Windows Server 2008 R2

版本資訊

F# 核心程式庫版本

支援版本:2.0, 4.0,可攜式執行檔 (PE)。

請參閱

參考

Core.Option<'T> 等位 (F#)

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