Redigeeri

Jagamisviis:


WebPartManagerInternals.CreateObjectFromType(Type) Method

Definition

Creates an object based on the parameter passed to the method.

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

Parameters

type
Type

The Type of the object to create.

Returns

An Object of the same type as type.

Remarks

The method uses the CodeGenerator class to create the type, an alternative that offers better performance than using the CreateInstance method.

Applies to

See also