ExpressionExtensions.GetPropertyAccess(LambdaExpression) 方法

定义

获取 PropertyInfo 由简单的属性访问表达式表示的 。

public static System.Reflection.PropertyInfo GetPropertyAccess (this System.Linq.Expressions.LambdaExpression propertyAccessExpression);
static member GetPropertyAccess : System.Linq.Expressions.LambdaExpression -> System.Reflection.PropertyInfo
<Extension()>
Public Function GetPropertyAccess (propertyAccessExpression As LambdaExpression) As PropertyInfo

参数

propertyAccessExpression
LambdaExpression

表达式。

返回

PropertyInfo

注解

此方法通常用于分析来自 Fluent API 的属性访问 lambda。

适用于