NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

CollectionEditor.CreateInstance

Creates a new instance of the given collection item type.

[Visual Basic]
Overridable Protected 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 given object. This may throw an exception if a new instance could not be created. If the user chose to cancel the creation of this instance, this method may return null.

See Also

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