DesignSurface.CreateComponent(Type) Yöntem

Tanım

Dikkat

CreateComponent has been replaced by CreateInstance and will be removed after Beta2

Bir bileşenin örneğini oluşturur.

protected public:
 virtual System::ComponentModel::IComponent ^ CreateComponent(Type ^ componentType);
[System.Obsolete("CreateComponent has been replaced by CreateInstance and will be removed after Beta2")]
protected internal virtual System.ComponentModel.IComponent CreateComponent(Type componentType);
[<System.Obsolete("CreateComponent has been replaced by CreateInstance and will be removed after Beta2")>]
abstract member CreateComponent : Type -> System.ComponentModel.IComponent
override this.CreateComponent : Type -> System.ComponentModel.IComponent
Protected Friend Overridable Function CreateComponent (componentType As Type) As IComponent

Parametreler

componentType
Type

Oluşturulacak bileşenin türü.

Döndürülenler

Yeni oluşturulan bileşen.

Öznitelikler

Özel durumlar

componentType, null'e eşittir.

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

Açıklamalar

CreateComponent yöntemi, bir bileşenin örneğini oluşturmak için tasarım yüzeyinin CreateComponent yöntemi tarafından çağrılır. Bileşen oluşturulmalı ve tasarım yüzeyindeki genel kapsayıcıya eklenmelidir.

Şunlara uygulanır