WebPartManagerInternals.CreateObjectFromType(Type) 方法

定义

根据传递给该方法的参数创建一个对象。

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

参数

type
Type

要创建的对象的 Type

返回

type 具有相同类型的 Object

注解

方法使用 CodeGenerator 类创建 类型,这是一种比使用 CreateInstance 方法更好的性能的替代方法。

适用于

另请参阅