CollectionEditor.CollectionForm.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:
System::Object ^ CreateInstance(Type ^ itemType);
protected object CreateInstance (Type itemType);
member this.CreateInstance : Type -> obj
Protected Function CreateInstance (itemType As Type) As Object
Parameters
- itemType
- Type
The type of item to create.
Returns
A new instance of the specified object, or null
if the user chose to cancel the creation of this instance.
Remarks
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
.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για