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 (TimeSpan)

Waits either for the thread to die or for a specified time to expire.

[Visual Basic]
Overloads Public Function Join( _
   ByVal timeout As TimeSpan _
) As Boolean
[C#]
public bool Join(
   TimeSpan timeout
);
[C++]
public: bool Join(
   TimeSpan timeout
);
[JScript]
public function Join(
   timeout : TimeSpan
) : Boolean;

Parameters

timeout
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