Expression::Property Method (Expression^, String^)
Creates a MemberExpression that represents accessing a property.
Assembly: System.Core (in System.Core.dll)
public: static MemberExpression^ Property( Expression^ expression, String^ propertyName )
- Type: System.Linq.Expressions::Expression^
The name of a property to be accessed.
This method searches expression.Type and its base types for a property that has the name propertyName. Public properties are given preference over non-public properties. If a matching property is found, this method passes expression and the PropertyInfo that represents that property to Property.
Available since 8
Available since 3.5
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1