DesignSurface.CreateComponent(Type) Metoda

Definicja

Uwaga

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

Tworzy wystąpienie składnika.

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

Parametry

componentType
Type

Typ składnika do utworzenia.

Zwraca

Nowo utworzony składnik.

Atrybuty

Wyjątki

Parametr componentType ma wartość null.

Dołączony IDesignerHost do obiektu DesignSurface został usunięty.

Uwagi

Metoda CreateComponent jest wywoływana CreateComponent przez metodę powierzchni projektowej w celu utworzenia wystąpienia składnika. Składnik należy utworzyć i dodać do kontenera publicznego na powierzchni projektowej.

Dotyczy