Binder.InvokeMember Metodo

Definizione

Inizializza un nuovo gestore di associazione del membro invoke di CSharp.

Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice.

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

Parametri

flags
CSharpBinderFlags

Flag con cui inizializzare il gestore di associazione.

name
String

Nome del membro da richiamare.

typeArguments
IEnumerable<Type>

Elenco di argomenti del tipo specificati per la chiamata.

context
Type

Oggetto Type che indica il contesto in cui viene utilizzata l'operazione.

argumentInfo
IEnumerable<CSharpArgumentInfo>

Sequenza di istanze di CSharpArgumentInfo per gli argomenti dell'operazione.

Restituisce

Nuovo gestore di associazione del membro invoke di CSharp.

Si applica a