ToolboxItem.GetType Method (IDesignerHost, AssemblyName, String, Boolean)

 

Creates an instance of the specified type, optionally using a specified designer host and assembly name.

Namespace:   System.Drawing.Design
Assembly:  System.Drawing (in System.Drawing.dll)

Protected Overridable Function GetType (
	host As IDesignerHost,
	assemblyName As AssemblyName,
	typeName As String,
	reference As Boolean
) As Type

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.

Return Value

Type: System.Type

An instance of the specified type, if it can be located.

Exception Condition
ArgumentNullException

typeName is not specified.

.NET Framework
Available since 1.1
Return to top
Show: