Expr.PropertySet-Methode (F#)

Erstellt einen Ausdruck, der einen Schreibvorgang für eine statische Eigenschaft darstellt.

Namespace/Modulpfad: Microsoft.FSharp.Quotations

Assembly: FSharp.Core (in 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)

Parameter

  • property
    Typ: PropertyInfo

    Die Beschreibung der Eigenschaft.

  • value
    Typ: Expr

    Der festzulegende Wert.

  • indexerArgs
    Typ: Exprlist

    Liste von Indizes für die Eigenschaft, wenn es sich um eine indizierte Eigenschaft handelt.

  • obj
    Typ: Expr

    Die Objektinstanz, falls zutreffend.

Rückgabewert

Der resultierende Ausdruck.

Plattformen

Windows 7, Windows Vista SP2, Windows XP SP3, Windows XP x64 SP2, Windows Server 2008 R2, Windows Server 2008 SP2, Windows Server 2003 SP2

Versionsinformationen

F#-Runtime

Unterstützt in: 2.0, 4.0

Silverlight

Unterstützt in: 3

Siehe auch

Weitere Ressourcen

Quotations.Expr-Klasse (F#)

Microsoft.FSharp.Quotations-Namespace (F#)