Partager via


Reflection.UnionCaseInfo, classe (F#)

Représente un cas d'un type d'union discriminé

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

Assembly : FSharp.Core (in FSharp.Core.dll)

[<Sealed>]
type UnionCaseInfo =
 class
  member this.GetCustomAttributes : Type -> obj []
  member this.GetCustomAttributes : unit -> obj []
  member this.GetFields : unit -> PropertyInfo []
  member this.DeclaringType :  Type
  member this.Name :  string
  member this.Tag :  int
 end

Membres d'instance

Membre

Description

DeclaringType

Type dans lequel le cas se produit.

GetCustomAttributes

Retourne les attributs personnalisés associés au cas qui correspond au type d'attribut donné.

GetFields

Les champs associés au cas, représentés par une PropertyInfo.

Nom

Nom du cas.

Tag

Balise entière pour le cas.

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.Reflection, espace de noms (F#)