VirtualTypeImplementor.InvokeConstructor(ConstructorInfo, Object[]) Method

Definition

Creates an instance of a type.

public:
 virtual System::Object ^ InvokeConstructor(System::Reflection::ConstructorInfo ^ constructor, cli::array <System::Object ^> ^ args);
public virtual object InvokeConstructor (System.Reflection.ConstructorInfo constructor, object[] args);
abstract member InvokeConstructor : System.Reflection.ConstructorInfo * obj[] -> obj
override this.InvokeConstructor : System.Reflection.ConstructorInfo * obj[] -> obj
Public Overridable Function InvokeConstructor (constructor As ConstructorInfo, args As Object()) As Object

Parameters

constructor
ConstructorInfo
args
Object[]

The parameters to pass to the constructor.

Returns

An object that represents a created instance of a type.

Exceptions

If non-abstract derived class did not provide an implementation by overriding this method.

Applies to