FSharpValue.PreComputeUnionReader 方法 (F#)
產生函式,用以讀取等位型別之特定鑑別子案例的所有欄位。
**命名空間/模組路徑:**Microsoft.FSharp.Reflection
組件:FSharp.Core (在 FSharp.Core.dll 中)
// Signature:
static member PreComputeUnionReader : UnionCaseInfo * ?BindingFlags -> obj -> obj []
// Usage:
FSharpValue.PreComputeUnionReader (unionCase)
FSharpValue.PreComputeUnionReader (unionCase, bindingFlags = bindingFlags)
參數
unionCase
型別:UnionCaseInfo要讀取之聯集的描述。
bindingFlags
型別:BindingFlags選擇性的繫結旗標。
傳回值
函式,用於讀取所指定聯集的欄位。
平台
Windows 8 中, Windows 7, Windows Server 2012 上, Windows Server 2008 R2
版本資訊
F# 核心程式庫版本
支援版本:2.0, 4.0,可攜式執行檔 (PE)。