_ConstructorInfo.Invoke_5(Object[]) Method

Definition

Provides COM objects with version-independent access to the Invoke(Object[]) method.

public:
 System::Object ^ Invoke_5(cli::array <System::Object ^> ^ parameters);
public object Invoke_5 (object[] parameters);
abstract member Invoke_5 : obj[] -> obj
Public Function Invoke_5 (parameters As Object()) As Object

Parameters

parameters
Object[]

An array of values that matches the number, order, and type (under the constraints of the default binder) of the parameters for this constructor. If this constructor takes no parameters, then use either an array with zero elements or null, 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. For reference-type elements, this value is null. For value-type elements, this value is 0, 0.0, or false, depending on the specific element type.

Returns

An instance of the class associated with the constructor.

Remarks

This method is for access to managed classes from unmanaged code, and should not be called from managed code.

The Invoke method invokes the constructor reflected by the instance that has the specified parameters, providing default values for the parameters not commonly used.

Applies to