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