Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

_ConstructorInfo::Invoke_5 Method (array<Object^>^)

 

Provides COM objects with version-independent access to the Invoke method.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

Object^ Invoke_5(
	array<Object^>^ parameters
)

Parameters

parameters
Type: array<System::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.

Return Value

Type: System::Object^

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.

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

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft