Compartilhar via


Binder.SetIndex Método

Definição

Inicializa um novo associador de definição de índice CSharp.

Esta API dá suporte à infraestrutura do produto e não deve ser usada diretamente do seu código.

public:
 static System::Runtime::CompilerServices::CallSiteBinder ^ SetIndex(Microsoft::CSharp::RuntimeBinder::CSharpBinderFlags flags, Type ^ context, System::Collections::Generic::IEnumerable<Microsoft::CSharp::RuntimeBinder::CSharpArgumentInfo ^> ^ argumentInfo);
public static System.Runtime.CompilerServices.CallSiteBinder SetIndex (Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags flags, Type context, System.Collections.Generic.IEnumerable<Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo> argumentInfo);
public static System.Runtime.CompilerServices.CallSiteBinder SetIndex (Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags flags, Type? context, System.Collections.Generic.IEnumerable<Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo>? argumentInfo);
static member SetIndex : Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags * Type * seq<Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo> -> System.Runtime.CompilerServices.CallSiteBinder
Public Shared Function SetIndex (flags As CSharpBinderFlags, context As Type, argumentInfo As IEnumerable(Of CSharpArgumentInfo)) As CallSiteBinder

Parâmetros

flags
CSharpBinderFlags

Os sinalizadores com os quais inicializar o associador.

context
Type

O Type que indica onde esta operação é usada.

argumentInfo
IEnumerable<CSharpArgumentInfo>

A sequência de instâncias CSharpArgumentInfo para os argumentos dessa operação.

Retornos

Um novo associador de definição de índice CSharp.

Aplica-se a