Udostępnij za pośrednictwem


Binder.InvokeConstructor Metoda

Definicja

Inicjuje nowy element binder konstruktora wywołania CSharp.

Ten interfejs API obsługuje infrastrukturę produktu i nie jest przeznaczony do użycia bezpośrednio z poziomu kodu.

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

Parametry

flags
CSharpBinderFlags

Flagi, za pomocą których należy zainicjować binder.

context
Type

Wartość wskazująca Type , gdzie jest używana ta operacja.

argumentInfo
IEnumerable<CSharpArgumentInfo>

Sekwencja CSharpArgumentInfo wystąpień argumentów dla tej operacji.

Zwraca

Nowy binder konstruktora wywołania CSharp.

Dotyczy