System::Activator::CreateInstance 方法

Activator::CreateInstance method

使用该类型的无参构造函数创建指定类型的实例。

static System::SharedPtr<System::Object> System::Activator::CreateInstance(const System::TypeInfo &type)
参数类型描述
类型const System::TypeInfo&要创建的对象类型。

另见