Expr.PropertySet 方法 (F#)
建立運算式,這個運算式表示寫入至靜態屬性
**命名空間/模組路徑:**Microsoft.FSharp.Quotations
組件:FSharp.Core (在 FSharp.Core.dll 中)
// Signatures:
static member PropertySet : PropertyInfo * Expr * ?Expr list -> Expr
static member PropertySet : Expr * PropertyInfo * Expr * ?Expr list -> Expr
// Usage:
Expr.PropertySet (property, value)
Expr.PropertySet (property, value, indexerArgs = indexerArgs)
Expr.PropertySet (obj, property, value)
Expr.PropertySet (obj, property, value, indexerArgs = indexerArgs)
參數
property
型別:PropertyInfo屬性的描述。
value
型別:Expr要設定的值。
-
如果是已建立索引的屬性,則為屬性的索引清單。
obj
型別:Expr物件執行個體 (如果適用)。
傳回值
產生的運算式。
平台
Windows 8 中, Windows 7, Windows Server 2012 上, Windows Server 2008 R2
版本資訊
F# 核心程式庫版本
支援版本:2.0, 4.0,可攜式執行檔 (PE)。