共用方式為


Expr.FieldGet 方法 (F#)

建立運算式,表示物件的欄位的存取。

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

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

// Signatures:
static member FieldGet : Expr * FieldInfo -> Expr
static member FieldGet : FieldInfo -> Expr

// Usage:
Expr.FieldGet (obj, fieldInfo)
Expr.FieldGet (fieldInfo)

參數

  • obj
    型別:Expr

    輸入物件。

  • fieldInfo
    型別:FieldInfo

    要存取之欄位的描述。

傳回值

產生的運算式。

平台

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

請參閱

參考

Quotations.Expr 類別 (F#)

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