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
An Expression to set the Expression property equal to. This can be null for static properties.
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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.