Partager via


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

Types d'assistance pour les modèles actifs avec sept choix.

Espace de noms/Chemin du module : Microsoft.FSharp.Core

Assembly : FSharp.Core (in 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

Cas d'union

Case

Description

Choice1Of7 of 'T1

Le premier choix.

Choice2Of7 of 'T2

Le second choix.

Choice3Of7 of 'T3

Le troisième choix.

Choice4Of7 of 'T4

Le quatrième choix.

Choice5Of7 of 'T5

Le cinquième choix.

Choice6Of7 of 'T6

Le sixième choix.

Choice7Of7 of 'T7

Le septième choix.

Plateformes

Windows 7, Windows Vista SP2, Windows XP SP3, Windows XP x64 SP2, Windows Server 2008 R2, Windows Server 2008 SP2, Windows Server 2003 SP2

Informations de version

Runtime F#

Pris en charge dans : 2.0, 4.0

Silverlight

Prise en charge dans : 3

Voir aussi

Référence

Microsoft.FSharp.Core, espace de noms (F#)