Expression.MakeIndex Méthode

Définition

Crée un IndexExpression qui représente l'accès à une propriété indexée dans un objet.

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

Paramètres

instance
Expression

Objet auquel la propriété appartient. Doit avoir la valeur Null si la propriété est static (shared en Visual Basic).

indexer
PropertyInfo

Expression qui représente la propriété à indexer.

arguments
IEnumerable<Expression>

IEnumerable<Expression> (IEnumerable (Of Expression) en Visual Basic) contenant les arguments qui seront utilisés pour indexer la propriété.

Retours

IndexExpression

Élément IndexExpression créé.

S’applique à