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

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

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

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

[<StructuralEquality>]
[<StructuralComparison>]
type Choice<'T1,'T2,'T3> =
| Choice1Of3 of 'T1
| Choice2Of3 of 'T2
| Choice3Of3 of 'T3
 with
  interface IStructuralEquatable
  interface IComparable
  interface IComparable
  interface IStructuralComparable
 end

联合用例

Case

说明

'T1 的 Choice1Of3

第一个选择。

'T2 的 Choice2Of3

第二个选择。

'T3 的 Choice3Of3

第三个选择。

平台

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

版本信息

F#核心库版本

支持:2.0,4.0,可移植

请参见

参考

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