WebPartManagerInternals.CreateObjectFromType(Type) 方法
定义
根据传递给该方法的参数创建一个对象。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
参数
返回
与 type 具有相同类型的 Object。An Object of the same type as type.
注解
方法使用 CodeGenerator 类创建类型,这是提供比使用方法更好的性能的替代方法 CreateInstance 。The method uses the CodeGenerator class to create the type, an alternative that offers better performance than using the CreateInstance method.