ToolboxItem.GetType Method (IDesignerHost, AssemblyName, String, Boolean)
.NET Framework (current version)
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 null.
- assemblyName
-
Type:
System.Reflection.AssemblyName
An AssemblyName that indicates the assembly that contains the type to load. This can be null.
- 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. |
.NET Framework
Available since 1.1
Available since 1.1
Show: