## Thread::Join() method


加入受管线程。如有需要，执行无限等待。

```cpp
void System::Threading::Thread::Join()
```

## 另见

* Class [Thread](../)
* Namespace [System::Threading](../../)
* Library [Aspose.Page for C++](../../../)
## Thread::Join(int) method


加入受管线程。执行有限等待。

```cpp
bool System::Threading::Thread::Join(int millisecondsTimeout)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| millisecondsTimeout | int | 以毫秒为单位的等待超时时间。 |

### ReturnValue

如果线程成功加入则为 True，超时则为 false。

## 另见

* Class [Thread](../)
* Namespace [System::Threading](../../)
* Library [Aspose.Page for C++](../../../)
## Thread::Join(TimeSpan) method


加入受管线程。执行有限等待。

```cpp
bool System::Threading::Thread::Join(TimeSpan timeout)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| timeout | TimeSpan | 一个 [TimeSpan](../../../system/timespan/)，设置为等待线程终止的时间量。 |

### ReturnValue

如果线程成功加入则为 True，超时则为 false。

## 另见

* Class [TimeSpan](../../../system/timespan/)
* Class [Thread](../)
* Namespace [System::Threading](../../)
* Library [Aspose.Page for C++](../../../)
