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, 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.