Expr.PropertyGet-Methode (F#)

Erstellt einen Ausdruck zum Lesen einer statischen Eigenschaft.

Namespace/Modulpfad: Microsoft.FSharp.Quotations

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

Parameter

  • property
    Typ: PropertyInfo

    Die Beschreibung der Eigenschaft.

  • 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#)