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)

abstract CreateInstance : 
        itemType:Type -> Object
override CreateInstance : 
        itemType:Type -> Object

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: