NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Thread.Join (Int32)

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;

Parameters

millisecondsTimeout
The number of milliseconds to wait.

Return Value

true if the thread died; false if the wait timed out.

Exceptions

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.

See Also

Thread Class | Thread Members | System.Threading Namespace | Thread.Join Overload List