共用方式為


Core.Choice<'T1,'T2,'T3,'T4,'T5,'T6,'T7> 等位 (F#)

使用中的模式,以七個選項的協助程式型別。

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

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

[<StructuralEquality>]
[<StructuralComparison>]
type Choice<'T1,'T2,'T3,'T4,'T5,'T6,'T7> =
| Choice1Of7 of 'T1
| Choice2Of7 of 'T2
| Choice3Of7 of 'T3
| Choice4Of7 of 'T4
| Choice5Of7 of 'T5
| Choice6Of7 of 'T6
| Choice7Of7 of 'T7
 with
  interface IStructuralEquatable
  interface IComparable
  interface IComparable
  interface IStructuralComparable
 end

聯集

Case

說明

'T1 的 Choice1Of7

第一個選項。

'T2 的 Choice2Of7

第二個選項中。

'T3 的 Choice3Of7

第三個選項中。

'T4 的 Choice4Of7

第四個選項中。

'T5 的 Choice5Of7

第五個的選擇。

'T6 的 Choice6Of7

第六個的選擇。

'T7 的 Choice7Of7

第七個的選擇。

平台

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

請參閱

參考

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