Waits either for the thread to die or for a specified time to expire.
[Visual Basic] Overloads Public Function Join( _ ByVal millisecondsTimeout As Integer _ ) As Boolean [C#] public bool Join( int millisecondsTimeout ); [C++] public: bool Join( int millisecondsTimeout ); [JScript] public function Join( millisecondsTimeout : int ) : Boolean;
true if the thread died; false if the wait timed out.
Exception Type | Condition |
---|---|
ArgumentException | The timeout value is less than zero. |
ThreadStateException | The thread has not been started. |
ThreadInterruptedException | The thread is interrupted while waiting. |
SecurityException | The caller does not have the appropriate SecurityPermission. |
Thread Class | Thread Members | System.Threading Namespace | Thread.Join Overload List