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.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.