Compartir a través de


WebPartManagerInternals.CreateObjectFromType(Type) Método

Definición

Crea un objeto basado en el parámetro que se pasó al método.

public:
 System::Object ^ CreateObjectFromType(Type ^ type);
public object CreateObjectFromType (Type type);
member this.CreateObjectFromType : Type -> obj
Public Function CreateObjectFromType (type As Type) As Object

Parámetros

type
Type

Type del objeto que se va a crear.

Devoluciones

Object

Objeto Object del mismo tipo que type.

Comentarios

El método utiliza la CodeGenerator clase para crear el tipo, una alternativa que ofrece un mejor rendimiento que el uso del CreateInstance método.

Se aplica a

Consulte también