## Activator::CreateInstance method


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

```cpp
static System::SharedPtr<System::Object> System::Activator::CreateInstance(const System::TypeInfo &type)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 类型 | const System::TypeInfo\& | 要创建的对象类型。 |

## 另见

* Typedef [SharedPtr](../../sharedptr/)
* Class [Object](../../object/)
* Class [TypeInfo](../../typeinfo/)
* Class [Activator](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
