ConstructorInfo._ConstructorInfo.Invoke_2(Object, BindingFlags, Binder, Object[], CultureInfo) 方法
定义
为 COM 对象提供对 Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) 方法的与版本无关的访问。Provides COM objects with version-independent access to the Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) method.
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
参数
- obj
- Object
创建了此方法的实例。The instance that created this method.
- invokeAttr
- BindingFlags
指定绑定类型的 BindingFlags 值之一。One of the BindingFlags values that specifies the type of binding.
- binder
- Binder
一个 Binder,它定义一组属性并通过反射来启用绑定、自变量类型强制转换和成员调用。A Binder that defines a set of properties and enables the binding, coercion of argument types, and invocation of members using reflection. 如果 binder 为 null,则使用 DefaultBinder。If binder is null, then DefaultBinder is used.
- parameters
- Object[]
一个对象数组,其中的对象用于在 binder 的约束下匹配此构造函数的参数的个数、顺序和类型。An array of objects used to match the number, order, and type of the parameters for this constructor, under the constraints of binder. 如果此构造函数不需要参数,则传递一个包含零元素的数组。If this constructor does not require parameters, pass an array with zero elements. 此数组中未使用值显式初始化的任何对象都将包含该对象类型的默认值。Any object in this array that is not explicitly initialized with a value will contain the default value for that object type. 对于引用类型元素,此值为 null。For reference-type elements, this value is null. 对于值类型元素,此值为 0、0.0 或 false,具体取决于特定的元素类型。For value-type elements, this value is 0, 0.0, or false, depending on the specific element type.
- culture
- CultureInfo
用于控制类型强制转换的 CultureInfo。A CultureInfo used to govern the coercion of types. 如果这是 null,则使用当前线程的 CultureInfo。If this is null, the CultureInfo for the current thread is used.
返回
该类型的实例。An instance of the type.
实现
注解
此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 ConstructorInfo 实例被强制转换为 _ConstructorInfo 接口时使用。It can be used only when the ConstructorInfo instance is cast to an _ConstructorInfo interface.