ExpressionExtensions.GetPropertyAccess(LambdaExpression) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
得到一個 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
表達式。
傳回
備註
此方法通常用於解析流暢 API 中的屬性存取 lambda。