InstanceCreationEditor.CreateInstance(ITypeDescriptorContext, Type) Methode

Definition

Wenn eine abgeleitete Klasse überschrieben wird, wird eine Instanz des angegebenen Typs zurückgegeben.

public:
 abstract System::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

Parameter

context
ITypeDescriptorContext

Die Kontextinformationen.

instanceType
Type

Der angegebene Typ.

Gibt zurück

Eine Instanz des angegebenen Typs oder null.

Gilt für: