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 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#)