WebPartManagerInternals::CreateObjectFromType Method (Type^)

 

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

Namespace:   System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

public:
Object^ CreateObjectFromType(
	Type^ type
)

Parameters

type
Type: System::Type^

The Type of the object to create.

Return Value

Type: System::Object^

An Object of the same type as type.

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

.NET Framework
Available since 2.0
Return to top
Show: