DesignSurface.CreateInstance(Type) Método

Definición

Crea una instancia del tipo especificado.

protected public:
 virtual System::Object ^ CreateInstance(Type ^ type);
protected internal virtual object CreateInstance(Type type);
abstract member CreateInstance : Type -> obj
override this.CreateInstance : Type -> obj
Protected Friend Overridable Function CreateInstance (type As Type) As Object

Parámetros

type
Type

Tipo que se va a crear.

Devoluciones

Objeto recién creado.

Excepciones

type es null.

Se IDesignerHost ha eliminado el DesignSurface adjunto al objeto .

Comentarios

Si type es , IComponentCreateInstance busca primero un constructor de tipoIContainer, seguido de un constructor vacío.

Se aplica a