Partager via


UnionCaseInfo.GetCustomAttributes, méthode (F#)

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

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

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

// Signatures:
member this.GetCustomAttributes : Type -> obj []
member this.GetCustomAttributes : unit -> obj []

// Usage:
unionCaseInfo.GetCustomAttributes (attributeType)
unionCaseInfo.GetCustomAttributes ()

Paramètres

  • attributeType
    Type : Type.

    Type des attributs à retourner.

Valeur de retour

Tableau d'attributs personnalisés.

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

Reflection.UnionCaseInfo, classe (F#)

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