語言

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。

備註

此方法通常用於解析流暢 API 中的屬性存取 lambda。

適用於