Core.Choice<'T1,'T2> 共用体 (F#)

2 つの選択肢を持つアクティブ パターンのヘルパー型。

名前空間/モジュール パス: Microsoft.FSharp.Core

アセンブリ: FSharp.Core (FSharp.Core.dll)

[<StructuralEquality>]
[<StructuralComparison>]
type Choice<'T1,'T2> =
| Choice1Of2 of 'T1
| Choice2Of2 of 'T2
 with
  interface IStructuralEquatable
  interface IComparable
  interface IComparable
  interface IStructuralComparable
 end

共用体ケース

Case

説明

Choice1Of2 of 'T1

最初の選択肢。

Choice2Of2 of 'T2

2 番目の選択肢。

プラットフォーム

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