DesignSurface.CreateInstance(Type) Yöntem

Tanım

Verilen türün bir örneğini oluşturur.

protected public:
 virtual System::Object ^ CreateInstance(Type ^ type);
protected internal virtual object CreateInstance(Type type);
abstract member CreateInstance : Type -> obj
override this.CreateInstance : Type -> obj
Protected Friend Overridable Function CreateInstance (type As Type) As Object

Parametreler

type
Type

Oluşturulacak tür.

Döndürülenler

Yeni oluşturulan nesne.

Özel durumlar

type, null'e eşittir.

IDesignerHost'a DesignSurface bağlı olan atılmıştır.

Açıklamalar

ise typeIComponent, CreateInstance önce türünde IContainer bir oluşturucu, ardından boş bir oluşturucu arar.

Şunlara uygulanır