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")]
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şen türü.

Döndürülenler

Yeni oluşturulan bileşen.

Öznitelikler

Özel durumlar

componentType, null değeridir.

IDesignerHost öğesine bağlı DesignSurface olan atılmıştır.

Açıklamalar

yöntemi CreateComponent , 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