Reflection.FSharpValue 類別 (F#)
包含與建構和分析值相關聯的作業,而這些值與 F# 型別 (如記錄、等位和 Tuple) 相關聯。
**命名空間/模組路徑:**Microsoft.FSharp.Reflection
組件:FSharp.Core (在 FSharp.Core.dll 中)
[<AbstractClass>]
[<Sealed>]
type FSharpValue =
class
static member GetExceptionFields : obj * ?BindingFlags -> obj []
static member GetRecordField : obj * PropertyInfo -> obj
static member GetRecordFields : obj * ?BindingFlags -> obj []
static member GetTupleField : obj * int -> obj
static member GetTupleFields : obj -> obj []
static member GetUnionFields : obj * Type * ?BindingFlags -> UnionCaseInfo * obj []
static member MakeFunction : Type * (obj -> obj) -> obj
static member MakeRecord : Type * obj [] * ?BindingFlags -> obj
static member MakeTuple : obj [] * Type -> obj
static member MakeUnion : UnionCaseInfo * obj [] * ?BindingFlags -> obj
static member PreComputeRecordConstructor : Type * ?BindingFlags -> obj [] -> obj
static member PreComputeRecordConstructorInfo : Type * ?BindingFlags -> ConstructorInfo
static member PreComputeRecordFieldReader : PropertyInfo -> obj -> obj
static member PreComputeRecordReader : Type * ?BindingFlags -> obj -> obj []
static member PreComputeTupleConstructor : Type -> obj [] -> obj
static member PreComputeTupleConstructorInfo : Type -> ConstructorInfo * Type option
static member PreComputeTuplePropertyInfo : Type * int -> PropertyInfo * Type * int option
static member PreComputeTupleReader : Type -> obj -> obj []
static member PreComputeUnionConstructor : UnionCaseInfo * ?BindingFlags -> obj [] -> obj
static member PreComputeUnionConstructorInfo : UnionCaseInfo * ?BindingFlags -> MethodInfo
static member PreComputeUnionReader : UnionCaseInfo * ?BindingFlags -> obj -> obj []
static member PreComputeUnionTagMemberInfo : Type * ?BindingFlags -> MemberInfo
static member PreComputeUnionTagReader : Type * ?BindingFlags -> obj -> int
end
靜態成員
成員 |
描述 |
---|---|
從使用 F# 例外狀況宣告的執行個體所建置的值中讀取所有欄位。 |
|
讀取記錄值中的某個欄位。 |
|
讀取記錄值中的所有欄位。 |
|
讀取 Tuple 值中的某個欄位。 |
|
讀取 Tuple 中的所有欄位。 |
|
識別物件的聯集和其欄位。 |
|
從動態函式實作的物件中建立具型別函式。 |
|
建立記錄型別的執行個體。 |
|
建立 Tuple 型別的執行個體。 |
|
建立聯集值。 |
|
預先計算用來建構記錄值的函式。 |
|
取得記錄型別的 ConstructorInfo。 |
|
預先計算用來讀取記錄之特定欄位的函式。 |
|
預先計算用來讀取記錄之所有欄位的函式。欄位的傳回順序,與呼叫這種型別之 Microsoft.FSharp.Reflection.Type.GetInfo 所報告的欄位順序相同。 |
|
預先計算函式,以便讀取特定 Tuple 型別的值。 |
|
取得方法,這個方法會建構所指定之 Tuple 型別的物件。若為小型 Tuple,則不會傳回其他型別。 |
|
取得指示如何讀取 Tuple 欄位的資訊。 |
|
預先計算函式,以便讀取特定 Tuple 型別的值。 |
|
預先計算函式,以建構特定聯集的差別等位值。 |
|
建構所指定案例之物件的方法。 |
|
預先計算函式,以讀取等位型別之特定鑑別子案例的所有欄位。 |
|
預先計算用來讀取整數的屬性或靜態方法,而這個整數表示等位型別的 case 標記。 |
|
預先計算讀取等位型別之標籤的函式。 |
平台
Windows 8 中, Windows 7, Windows Server 2012 上, Windows Server 2008 R2
版本資訊
F# 核心程式庫版本
支援版本:2.0, 4.0,可攜式執行檔 (PE)。