Export (0) Print
Expand All

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

Dynamically invokes the constructor reflected by this instance on the given object, passing along the specified parameters, and under the constraints of the given binder. This method is not supported.

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

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


Type: System.Reflection.BindingFlags
This must be a bit flag from BindingFlags, such as InvokeMethod, NonPublic, and so on.
Type: System.Reflection.Binder
An object that enables the binding, coercion of argument types, invocation of members, and retrieval of MemberInfo objects using reflection. If binder is null, the default binder is used. See Binder.
Type: System.Object[]
An argument list. This is an array of arguments with 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
An instance of CultureInfo used to govern the coercion of types. If this is null, the CultureInfo for the current thread is used. (For example, this is necessary to convert a String that represents 1000 to a Double value, because 1000 is represented differently by different cultures.)

Return Value

Type: System.Object
The return value of the invoked 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

© 2014 Microsoft