Expression::Property Method (Expression^, MethodInfo^)
Creates a MemberExpression that represents accessing a property by using a property accessor method.
Assembly: System.Core (in System.Core.dll)
public: static MemberExpression^ Property( Expression^ expression, MethodInfo^ propertyAccessor )
- Type: System.Linq.Expressions::Expression^
propertyAccessor is null.
The method that propertyAccessor represents is not static (Shared in Visual Basic) and expression is null.
expression.Type is not assignable to the declaring type of the method represented by propertyAccessor.
The method that propertyAccessor represents is not a property accessor method.
Available since 4.5
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