CollectionEditor::CollectionForm::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:
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, or null if the user chose to cancel the creation of this instance.

This method throws an exception if a new instance cannot be created. If the user chooses to cancel the creation of this instance, this method returns null.

.NET Framework
Available since 1.1
Return to top
Show: