Core.Choice<'T1,'T2,'T3,'T4> 联合 (F#)

含有 4 个选项的活动模式的帮助器类型。

命名空间/模块路径: Microsoft.FSharp.Core

程序集:FSharp.Core(在 FSharp.Core.dll 中)

[<StructuralEquality>]
[<StructuralComparison>]
type Choice<'T1,'T2,'T3,'T4> =
| Choice1Of4 of 'T1
| Choice2Of4 of 'T2
| Choice3Of4 of 'T3
| Choice4Of4 of 'T4
 with
  interface IStructuralEquatable
  interface IComparable
  interface IComparable
  interface IStructuralComparable
 end

联合用例

Case

说明

'T1 的 Choice1Of4

第一个选择。

'T2 的 Choice2Of4

第二个选择。

'T3 的 Choice3Of4

第三个选择。

'T4 的 Choice4Of4

第四个选择。

平台

Windows 8,Windows 7,Windows server 2012中,Windows server 2008 R2

版本信息

F#核心库版本

支持:2.0,4.0,可移植

请参见

参考

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