Property Method (Expression, Type, String)

Expression.Property Method (Expression, Type, String)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Creates a MemberExpression accessing a property.

Namespace:  System.Linq.Expressions
Assembly:  System.Core (in System.Core.dll)

public static MemberExpression Property(
	Expression expression,
	Type type,
	string propertyName
)

Parameters

expression
Type: System.Linq.Expressions.Expression
The containing object of the property. This can be null for static properties.
type
Type: System.Type
The Type that contains the property.
propertyName
Type: System.String
The property to be accessed.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft