InstanceCreationEditor.CreateInstance(ITypeDescriptorContext, Type) Metódus

Definíció

Ha egy származtatott osztály felül van bírálva, a megadott típusú példányt adja vissza.

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

Paraméterek

context
ITypeDescriptorContext

A környezet információi.

instanceType
Type

A megadott típus.

Válaszok

A megadott típusú vagy null.

A következőre érvényes: