Udostępnij za pośrednictwem


UnionCaseInfo.GetCustomAttributes — Metoda (F#)

Zwraca niestandardowych atrybutów skojarzonych z przypadku dopasowania typu danego atrybutu.

Ścieżka obszaru nazw/modułu: Microsoft.FSharp.Reflection

Zestaw: FSharp.Core (w FSharp.Core.dll)

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

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

Parametry

  • attributeType
    Typ:Type

    Typ zwracanych atrybutów.

Wartość zwracana

Tablica atrybutów niestandardowych.

Platformy

Windows 8, Windows 7, Windows Server 2012 Windows Server 2008 R2

Informacje o wersji

F# Core wersji biblioteki

Obsługiwane: 2.0, 4.0, przenośne

Zobacz też

Informacje

Reflection.UnionCaseInfo — Klasa (F#)

Microsoft.FSharp.Reflection — Przestrzeń nazw (F#)