VirtualTypeImplementor.InvokeConstructor(ConstructorInfo, Object[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.