## ThreadPoolImpl::SetMaxThreads method


设置池拥有的线程数量。

```cpp
bool System::Threading::ThreadPoolImpl::SetMaxThreads(int wt, int cpt)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 工作线程 | int | 工作线程的最大数量。 |
| cpt | int | 最大数量的 [IO](../../../system.io/) 线程。 |

### ReturnValue

如果参数被接受则为 True，否则为 false。

## 另见

* Class [ThreadPoolImpl](../)
* Namespace [System::Threading](../../)
* Library [Aspose.Font for C++](../../../)
