Bagikan melalui


Binder.InvokeConstructor Metode

Definisi

Menginisialisasi pengikat konstruktor pemanggil CSharp baru.

API ini mendukung infrastruktur produk dan tidak dimaksudkan untuk digunakan langsung dari kode Anda.

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

Parameter

flags
CSharpBinderFlags

Bendera untuk menginisialisasi pengikat.

context
Type

Type yang menunjukkan di mana operasi ini digunakan.

argumentInfo
IEnumerable<CSharpArgumentInfo>

Urutan CSharpArgumentInfo instans untuk argumen untuk operasi ini.

Mengembalikan

CSharp baru memanggil pengikat konstruktor.

Berlaku untuk