共用方式為


FSharpValue.PreComputeRecordConstructor 方法 (F#)

會產生函式建構資料錄的值。

命名空間/模組路徑: Microsoft.FSharp.Reflection

組件:FSharp.Core (在 FSharp.Core.dll 中)

// Signature:
static member PreComputeRecordConstructor : Type * ?BindingFlags -> obj [] -> obj

// Usage:
FSharpValue.PreComputeRecordConstructor (recordType)
FSharpValue.PreComputeRecordConstructor (recordType, bindingFlags = bindingFlags)

參數

  • recordType
    型別:Type

    要建構之記錄的型別。

  • bindingFlags
    型別:BindingFlags

    選擇性的繫結旗標。

例外狀況

例外狀況

條件

ArgumentException

當輸入型別不是記錄型別時擲回。

傳回值

建構所指定型別之記錄的函式。

平台

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

請參閱

參考

Reflection.FSharpValue 類別 (F#)

Microsoft.FSharp.Reflection 命名空間 (F#)