Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Blocks the calling thread until a thread terminates or the specified time elapses, while continuing to perform standard COM and SendMessage pumping.
Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Function Join ( _
timeout As TimeSpan _
) As Boolean
public bool Join(
TimeSpan timeout
)
public:
bool Join(
TimeSpan timeout
)
member Join :
timeout:TimeSpan -> bool
public function Join(
timeout : TimeSpan
) : boolean
Parameters
- timeout
Type: System. . :: . .TimeSpan
A TimeSpan set to the amount of time to wait for the thread to terminate.
Return Value
Type: System. . :: . .Boolean
true if the thread terminated; false if the thread has not terminated after the amount of time specified by the timeout parameter has elapsed.
Remarks
If Timeout..::..Infinite is specified for timeout, this method behaves identically to the Join()()()() method overload, except for the return value.
If the thread has already terminated when Join is called, the method returns immediately.
This method changes the state of the current thread to include WaitSleepJoin. You cannot invoke Join on a thread that is in the ThreadState..::..Unstarted state.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.