UnionCaseInfo.GetCustomAttributes 方法 (F#)
傳回與符合所指定屬性型別之案例相關聯的自訂屬性。
命名空間/模組路徑: Microsoft.FSharp.Reflection
組件:FSharp.Core (在 FSharp.Core.dll 中)
// Signatures:
member this.GetCustomAttributes : Type -> obj []
member this.GetCustomAttributes : unit -> obj []
// Usage:
unionCaseInfo.GetCustomAttributes (attributeType)
unionCaseInfo.GetCustomAttributes ()
參數
attributeType
型別:Type要傳回的屬性型別。
傳回值
自訂屬性的陣列。
平台
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