ConstructorBuilder.Invoke Method (Object, BindingFlags, Binder, Object[], CultureInfo)

Dynamically invokes the constructor reflected by this instance with the specified arguments, under the constraints of the specified Binder. This method is not supported.

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

public override Object Invoke(
	Object obj,
	BindingFlags invokeAttr,
	Binder binder,
	Object[] parameters,
	CultureInfo culture


Type: System.Object
The object that needs to be reinitialized.
Type: System.Reflection.BindingFlags
A combination of enumeration values that specifies the type of binding that is desired.
Type: System.Reflection.Binder
An object that enables the binding, coercion of argument types, invocation of members, and retrieval of MemberInfo objects via reflection. If binder is null, Type.DefaultBinder is used.
Type: System.Object[]
An argument list. This is an array of arguments that have the same number, order, and type as the parameters of the constructor to be invoked. If there are no parameters, this should be null.
Type: System.Globalization.CultureInfo
A CultureInfo used to govern the coercion of types. If this is null, the CultureInfo for the current thread is used.

Return Value

Type: System.Object
An instance of the class associated with the constructor.


This method is not currently supported.

To invoke this constructor, complete its type by calling the TypeBuilder.CreateType method. The CreateType method returns the completed type, and you can use the Type.GetConstructor method to get the ConstructorInfo. Call ConstructorInfo.Invoke to invoke the constructor.


Supported in: 5, 4, 3

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

Community Additions