This documentation is archived and is not being maintained.

CollectionEditor.CreateInstance Method

Creates a new instance of the specified collection item type.

[Visual Basic]
Protected Overridable Function CreateInstance( _
   ByVal itemType As Type _
) As Object
[C#]
protected virtual object CreateInstance(
 Type itemType
);
[C++]
protected: virtual Object* CreateInstance(
 Type* itemType
);
[JScript]
protected function CreateInstance(
   itemType : Type
) : Object;

Parameters

itemType
The type of item to create.

Return Value

A new instance of the specified object.

Remarks

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

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

CollectionEditor Class | CollectionEditor Members | System.ComponentModel.Design Namespace

Show: