Freigeben über


Binder.SetIndex Methode

Definition

Initialisiert einen neuen Binder zum Festlegen von CSharp-Indizes.

Diese API unterstützt die Produktinfrastruktur und ist nicht für die direkte Verwendung aus Ihrem Code gedacht.

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

Parameter

flags
CSharpBinderFlags

Die Flags, mit denen der Binder initialisiert werden soll.

context
Type

Der Type, der angibt, an welcher Position dieser Vorgang verwendet wird.

argumentInfo
IEnumerable<CSharpArgumentInfo>

Die Sequenz von CSharpArgumentInfo-Instanzen für die Argumente dieses Vorgangs.

Gibt zurück

Ein neuer CSharp-SetIndex-Binder.

Gilt für: