_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.
public:
System::Object ^ Invoke_2(System::Object ^ obj, System::Reflection::BindingFlags invokeAttr, System::Reflection::Binder ^ binder, cli::array <System::Object ^> ^ parameters, System::Globalization::CultureInfo ^ culture);
public object Invoke_2 (object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object[] parameters, System.Globalization.CultureInfo culture);
abstract member Invoke_2 : obj * System.Reflection.BindingFlags * System.Reflection.Binder * obj[] * System.Globalization.CultureInfo -> obj
パラメーター
- obj
- Object
このメソッドを作成したインスタンス。The instance that created this method.
- invokeAttr
- BindingFlags
バインディングの種類を指定する BindingFlags
値の 1 つ。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
の場合は、Binder.DefaultBinding
が使用されます。If binder
is null
, then Binder.DefaultBinding
is used.
- parameters
- Object[]
binder
の制約下で、コンストラクターのパラメーターの数、順序、および型と要素の数、順序、型を一致させる Object
型の配列。An array of type Object
used to match the number, order, and type of the parameters for this constructor, under the constraints of binder
. コンストラクターにパラメーターが必要ない場合は、Object[] parameters = new Object[0] のように、要素がゼロ個の配列を渡します。If this constructor does not require parameters, pass an array with zero elements, as in Object[] parameters = new Object[0]. この配列の中で、何らかの値で明示的に初期化されないオブジェクトには、そのオブジェクト型の既定値が格納されます。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 class associated with the constructor.
注釈
このメソッドは、アンマネージコードからマネージクラスにアクセスするためのものであり、マネージコードからは呼び出さないでください。This method is for access to managed classes from unmanaged code, and should not be called from managed code.
メソッドInvokeは、指定されたのConstructorInfo Binder制約下で、指定された引数を使用して、このによってリフレクションされたコンストラクターを呼び出します。The Invoke method invokes the constructor reflected by this ConstructorInfo with the specified arguments, under the constraints of the specified Binder.