Expression.MakeIndex Methode

Definitie

Hiermee maakt u een IndexExpression die toegang geeft tot een geïndexeerde eigenschap in een object.

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

Parameters

instance
Expression

Het object waartoe de eigenschap behoort. Deze moet null zijn als de eigenschap static (shared in Visual Basic).

indexer
PropertyInfo

Een Expression weergave van de eigenschap die moet worden geïndexeert.

arguments
IEnumerable<Expression>

Een IEnumerable<Expression> (IEnumerable (Of Expression) in Visual Basic) die de argumenten bevat die worden gebruikt om de eigenschap te indexeren.

Retouren

De gemaakte IndexExpression.

Van toepassing op