語言

Expression.MakeIndex 方法

定義

建立 IndexExpression 一個代表物件中索引屬性的存取。

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

參數

instance
Expression

該財產所屬的物件。 若性質為 static(shared,則該性質應為空Visual Basic)。

indexer
PropertyInfo

A Expression 表示要索引的屬性。

arguments
IEnumerable<Expression>

一個 IEnumerable<Expression>(Visual Basic 中為 IEnumerable (Of Expression)),包含用於索引該屬性的參數。

傳回

被創造 IndexExpression的。

適用於