共用方式為


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

    要設定的值。

  • indexerArgs
    型別:Exprlist

    如果是已建立索引的屬性,則為屬性的索引清單。

  • 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

請參閱

參考

Quotations.Expr 類別 (F#)

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