InstanceCreationEditor.CreateInstance(ITypeDescriptorContext, Type) Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
При переопределении в производном классе возвращает экземпляр указанного типа.
public:
abstract System::Object ^ CreateInstance(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ instanceType);
public abstract object? CreateInstance(System.ComponentModel.ITypeDescriptorContext context, Type instanceType);
public abstract object CreateInstance(System.ComponentModel.ITypeDescriptorContext context, Type instanceType);
abstract member CreateInstance : System.ComponentModel.ITypeDescriptorContext * Type -> obj
Public MustOverride Function CreateInstance (context As ITypeDescriptorContext, instanceType As Type) As Object
Параметры
- context
- ITypeDescriptorContext
Сведения о контексте.
- instanceType
- Type
Указанный тип.
Возвращаемое значение
Экземпляр указанного типа или null.