VirtualTypeImplementor::InvokeConstructor Method (ConstructorInfo^, array<Object^>^)
Visual Studio 2015
Creates an instance of a type.
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
public: virtual Object^ InvokeConstructor( ConstructorInfo^ constructor, array<Object^>^ args )
Parameters
- ctor
The constructor to invoke.
- args
-
Type:
array<System::Object^>^
The parameters to pass to the constructor.
| Exception | Condition |
|---|---|
| NotImplementedException | If non-abstract derived class did not provide an implementation by overriding this method. |
Used by a type implementor to create an instance of a type. If the virtual type was marked as serializable, this object must be serializable as well.
Show: