Expression.MakeIndex Metoda

Definicja

Tworzy obiekt IndexExpression reprezentujący dostęp do indeksowanej właściwości w obiekcie.

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

Parametry

instance
Expression

Obiekt, do którego należy właściwość. Powinna mieć wartość null, jeśli właściwość to static (shared w Visual Basic).

indexer
PropertyInfo

Reprezentująca Expression właściwość do indeksowania.

arguments
IEnumerable<Expression>

An IEnumerable<Expression> (IEnumerable (Of Expression) w Visual Basic), który zawiera argumenty, które będą używane do indeksowania właściwości.

Zwraca

Utworzony element IndexExpression.

Dotyczy