CollectionEditorCreateInstance Method
 

Creates a new instance of the specified collection item type.

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

Syntax
protected virtual object CreateInstance(
	Type itemType
)
protected:
virtual Object^ CreateInstance(
	Type^ itemType
)
abstract CreateInstance : 
        itemType:Type -> Object
override CreateInstance : 
        itemType:Type -> Object
Protected Overridable Function CreateInstance (
	itemType As Type
) As Object

Parameters

itemType
Type:

The type of item to create.

Return Value

Type:

A new instance of the specified object.

Notes to Implementers:

This method should throw an exception if it cannot create a new instance of the specified type.

Version Information
.NET Framework
Available since 1.1
Return to top