Partilhar via


ExpressionExtensions.MakeMemberAccess(Expression, MemberInfo) Método

Definição

Cria um MemberExpression que representa o acesso a um campo ou uma propriedade.

public static System.Linq.Expressions.MemberExpression MakeMemberAccess (this System.Linq.Expressions.Expression expression, System.Reflection.MemberInfo member);
public static System.Linq.Expressions.MemberExpression MakeMemberAccess (this System.Linq.Expressions.Expression? expression, System.Reflection.MemberInfo member);
static member MakeMemberAccess : System.Linq.Expressions.Expression * System.Reflection.MemberInfo -> System.Linq.Expressions.MemberExpression
<Extension()>
Public Function MakeMemberAccess (expression As Expression, member As MemberInfo) As MemberExpression

Parâmetros

expression
Expression

Um Expression que representa o objeto ao qual o membro pertence.

member
MemberInfo

O MemberInfo que descreve a propriedade ou o campo a ser acessado.

Retornos

O MemberExpression que resulta de chamar o método de fábrica apropriado.

Aplica-se a