Expression::Property Method (Expression, String)
Creates a MemberExpression that represents accessing a property.
Assemblies: System.Core (in System.Core.dll)
System.Linq.Expressions (in System.Linq.Expressions.dll)
public: static MemberExpression^ Property( Expression^ expression, String^ propertyName )
- Type: System.Linq.Expressions::Expression
- Type: System::String
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.