This documentation is archived and is not being maintained.
ToolboxItem::GetType Method (IDesignerHost, AssemblyName, String, Boolean)
Visual Studio 2010
Creates an instance of the specified type, optionally using a specified designer host and assembly name.
Assembly: System.Drawing (in System.Drawing.dll)
protected: virtual Type^ GetType( IDesignerHost^ host, AssemblyName^ assemblyName, String^ typeName, bool reference )
Parameters
- host
- Type: System.ComponentModel.Design::IDesignerHost
The IDesignerHost for the current document. This can be nullptr.
- assemblyName
- Type: System.Reflection::AssemblyName
An AssemblyName that indicates the assembly that contains the type to load. This can be nullptr.
- typeName
- Type: System::String
The name of the type to create an instance of.
- reference
- Type: System::Boolean
A value indicating whether or not to add a reference to the assembly that contains the specified type to the designer host's set of references.
| Exception | Condition |
|---|---|
| ArgumentNullException | typeName is not specified. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: