DesignSurface::CreateInstance Method (Type^)
.NET Framework (current version)
Creates an instance of the given type.
Assembly: System.Design (in System.Design.dll)
Parameters
- type
-
Type:
System::Type^
The type to create.
| Exception | Condition |
|---|---|
| ArgumentNullException | type is null. |
| ObjectDisposedException | The IDesignerHost attached to the DesignSurface has been disposed. |
If type is an IComponent, CreateInstance searches for a constructor of type IContainer first, followed by an empty constructor.
.NET Framework
Available since 2.0
Available since 2.0
Show: