Share via


Join Method

[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, while continuing to perform standard COM and SendMessage pumping.

Namespace:  System.Threading
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Sub Join
public void Join()
public:
void Join()
member Join : unit -> unit 
public function Join()

Remarks

Use this method to ensure a thread has terminated. The caller will block indefinitely if the thread does not terminate. If the thread has already terminated when Join is called, the method returns immediately.

This method changes the state of the calling thread to include ThreadState..::..WaitSleepJoin. You cannot invoke Join on a thread that is in the ThreadState..::..Unstarted state.

.NET Framework Security

See Also

Reference

Thread Class

Join Overload

System.Threading Namespace