WebPartManagerInternals.CreateObjectFromType(Type) 方法       
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
根据传递给该方法的参数创建一个对象。
public:
 System::Object ^ CreateObjectFromType(Type ^ type);public object CreateObjectFromType(Type type);member this.CreateObjectFromType : Type -> objPublic Function CreateObjectFromType (type As Type) As Object参数
返回
与 type 具有相同类型的 Object。
注解
方法使用 CodeGenerator 类创建 类型,这是一种比使用 CreateInstance 方法更好的性能的替代方法。