_ConstructorInfo.Invoke_3(Object, Object[]) Method

Definition

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

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

Parameters

obj
Object

The instance that created this method.

parameters
Object[]

An argument list for the invoked method or constructor. This is an array of objects with the same number, order, and type as the parameters of the method or constructor to be invoked. If there are no parameters, parameters should be null.

If the method or constructor represented by this instance takes a ref parameter (ByRef in Visual Basic), no special attribute is required for that parameter in order to invoke the method or constructor using this function. 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 method or constructor represented by this object, using the specified parameters.

Applies to