Bagikan melalui


Expression.MakeIndex Metode

Definisi

IndexExpression Membuat yang mewakili mengakses properti terindeks dalam objek.

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

Parameter

instance
Expression

Objek tempat properti berada. Ini harus null jika properti adalah static (shared di Visual Basic).

indexer
PropertyInfo

Mewakili Expression properti untuk diindeks.

arguments
IEnumerable<Expression>

( IEnumerable<Expression>IEnumerable (Of Expression) dalam Visual Basic) yang berisi argumen yang akan digunakan untuk mengindeks properti.

Mengembalikan

Yang dibuat IndexExpression.

Berlaku untuk