ConstructorInfo._ConstructorInfo.Invoke_2 Metoda

Definicja

Udostępnia obiekty COM z niezależnym od wersji dostępem do Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) metody .

 virtual System::Object ^ System.Runtime.InteropServices._ConstructorInfo.Invoke_2(System::Object ^ obj, System::Reflection::BindingFlags invokeAttr, System::Reflection::Binder ^ binder, cli::array <System::Object ^> ^ parameters, System::Globalization::CultureInfo ^ culture) = System::Runtime::InteropServices::_ConstructorInfo::Invoke_2;
object _ConstructorInfo.Invoke_2 (object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object[] parameters, System.Globalization.CultureInfo culture);
abstract member System.Runtime.InteropServices._ConstructorInfo.Invoke_2 : obj * System.Reflection.BindingFlags * System.Reflection.Binder * obj[] * System.Globalization.CultureInfo -> obj
override this.System.Runtime.InteropServices._ConstructorInfo.Invoke_2 : obj * System.Reflection.BindingFlags * System.Reflection.Binder * obj[] * System.Globalization.CultureInfo -> obj
Function Invoke_2 (obj As Object, invokeAttr As BindingFlags, binder As Binder, parameters As Object(), culture As CultureInfo) As Object Implements _ConstructorInfo.Invoke_2

Parametry

obj
Object

Wystąpienie, które utworzyło tę metodę.

invokeAttr
BindingFlags

BindingFlags Jedna z wartości określających typ powiązania.

binder
Binder

Element Binder , który definiuje zestaw właściwości i włącza powiązanie, wymuszanie typów argumentów i wywołanie elementów członkowskich przy użyciu odbicia. Jeśli binder jest to null, DefaultBinder jest używany.

parameters
Object[]

Tablica obiektów używanych do dopasowania liczby, kolejności i typu parametrów tego konstruktora pod ograniczeniami binder. Jeśli ten konstruktor nie wymaga parametrów, przekaż tablicę z elementami zerowymi. Każdy obiekt w tej tablicy, który nie jest jawnie zainicjowany z wartością, będzie zawierać wartość domyślną dla tego typu obiektu. W przypadku elementów typu referencyjnego ta wartość to null. W przypadku elementów typu wartości ta wartość to 0, 0,0 lub false, w zależności od określonego typu elementu.

culture
CultureInfo

Służy CultureInfo do zarządzania przymusem typów. Jeśli jest nullto wartość , CultureInfo jest używany element dla bieżącego wątku.

Zwraca

Wystąpienie typu.

Implementuje

Uwagi

Ten element jest jawną implementacją członków. Można go używać tylko wtedy, gdy ConstructorInfo wystąpienie jest rzutowanie do interfejsu _ConstructorInfo .

Dotyczy