DesignSurface.CreateInstance Method
.NET Framework 2.0
Creates an instance of the given type.
Namespace: System.ComponentModel.Design
Assembly: System.Design (in system.design.dll)
Assembly: System.Design (in system.design.dll)
| Exception type | Condition |
|---|---|
| type is a null reference (Nothing in Visual Basic). | |
| 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.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.