ConstructorInfo.Invoke Method (Object[])

Invokes the current constructor with the specified arguments.

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

public Object Invoke(
	Object[] parameters


Type: 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, pass null or an array with zero elements; for example, new Object[] {} (New Object() {} in Visual Basic). 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 that is associated with the constructor.


The class is abstract.


The constructor is a class initializer.


The constructor is private or protected.


The parameters array does not contain values that match the types accepted by this constructor.


The invoked constructor throws an exception.


An incorrect number of parameters was passed.


Creation of TypedReference and RuntimeArgumentHandle types is not supported.

In Silverlight, you can invoke only accessible constructors.

The number, type, and order of elements in the parameters array must match the number, type, and order of parameters for the constructor reflected by this instance, as determined by the default binder.

Platform Notes

Silverlight for Windows Phone Silverlight for Windows Phone

 Invoke throws an ArgumentException exception instead of a TargetParameterCountException exception when there is a mismatch in the number of arguments.


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions