Expression.MakeIndex Método

Definición

Crea un objeto IndexExpression que representa el acceso a una propiedad indizada en un objeto.

public:
 static System::Linq::Expressions::IndexExpression ^ MakeIndex(System::Linq::Expressions::Expression ^ instance, System::Reflection::PropertyInfo ^ indexer, System::Collections::Generic::IEnumerable<System::Linq::Expressions::Expression ^> ^ arguments);
public static System.Linq.Expressions.IndexExpression MakeIndex (System.Linq.Expressions.Expression instance, System.Reflection.PropertyInfo indexer, System.Collections.Generic.IEnumerable<System.Linq.Expressions.Expression> arguments);
public static System.Linq.Expressions.IndexExpression MakeIndex (System.Linq.Expressions.Expression instance, System.Reflection.PropertyInfo? indexer, System.Collections.Generic.IEnumerable<System.Linq.Expressions.Expression>? arguments);
static member MakeIndex : System.Linq.Expressions.Expression * System.Reflection.PropertyInfo * seq<System.Linq.Expressions.Expression> -> System.Linq.Expressions.IndexExpression
Public Shared Function MakeIndex (instance As Expression, indexer As PropertyInfo, arguments As IEnumerable(Of Expression)) As IndexExpression

Parámetros

instance
Expression

Objeto al que pertenece la propiedad. Si la propiedad es static (shared en Visual Basic), debe ser null.

indexer
PropertyInfo

Expression que representa la propiedad que se va a indexar.

arguments
IEnumerable<Expression>

Un IEnumerable<Expression> (IEnumerable (Of Expression) en Visual Basic) que contiene los argumentos que se usarán para indexar la propiedad .

Devoluciones

Objeto IndexExpression creado.

Se aplica a