DesignSurface.CreateComponent(Type) Método

Definição

Cuidado

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

Cria uma instância de um 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")]
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

Parâmetros

componentType
Type

O tipo de componente a ser criado.

Retornos

O componente recém-criado.

Atributos

Exceções

componentType é null.

Comentários

O CreateComponent método é chamado pelo método da superfície de CreateComponent design para criar uma instância de um componente. O componente deve ser criado e adicionado ao contêiner público na superfície de design.

Aplica-se a