CollectionEditor.CreateInstance(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new instance of the specified collection item type.
protected:
virtual System::Object ^ CreateInstance(Type ^ itemType);
protected virtual object CreateInstance (Type itemType);
abstract member CreateInstance : Type -> obj
override this.CreateInstance : Type -> obj
Protected Overridable Function CreateInstance (itemType As Type) As Object
Parameters
- itemType
- Type
The type of item to create.
Returns
A new instance of the specified object.
Notes to Inheritors
This method should throw an exception if it cannot create a new instance of the specified type.
Applies to
Bekerjasama dengan kami di GitHub
Sumber untuk kandungan ini boleh didapati di GitHub, di mana anda juga boleh mencipta dan menyemak isu dan menarik permintaan. Untuk maklumat lanjut, lihat panduan penyumbang kami.