DesignSurface.CreateComponent(Type) Metodo

Definizione

Attenzione

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

Crea un'istanza di un componente.

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

Parametri

componentType
Type

Tipo di componente da creare.

Restituisce

IComponent

Componente appena creato.

Attributi

Eccezioni

componentType è null.

L'interfaccia IDesignerHost collegata all'oggetto DesignSurface è stata eliminata.

Commenti

Il CreateComponent metodo viene chiamato dal metodo dell'area di CreateComponent progettazione per creare un'istanza di un componente. Il componente deve essere creato e aggiunto al contenitore pubblico nell'area di progettazione.

Si applica a