CreateInstance Method

CollectionEditor.CreateInstance Method (Type)

 

Creates a new instance of the specified collection item type.

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

protected virtual object CreateInstance(
	Type itemType
)

Parameters

itemType
Type: System.Type

The type of item to create.

Return Value

Type: System.Object

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.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft