Expr.PropertyGet 方法 (F#)
建立代表讀取靜態屬性的運算式
命名空間/模組路徑: Microsoft.FSharp.Quotations
組件:FSharp.Core (在 FSharp.Core.dll 中)
// Signatures:
static member PropertyGet : PropertyInfo * ?Expr list -> Expr
static member PropertyGet : Expr * PropertyInfo * ?Expr list -> Expr
// Usage:
Expr.PropertyGet (property)
Expr.PropertyGet (property, indexerArgs = indexerArgs)
Expr.PropertyGet (obj, property)
Expr.PropertyGet (obj, property, indexerArgs = indexerArgs)
參數
property
型別:PropertyInfo屬性的描述。
-
如果是已建立索引的屬性,則為屬性的索引清單。
obj
型別:Expr如果有的話) 將物件實例。
傳回值
產生的運算式。
平台
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