Interrupts a thread that is in the WaitSleepJoin thread state.
[Visual Basic] Public Sub Interrupt() [C#] public void Interrupt(); [C++] public: void Interrupt(); [JScript] public function Interrupt();
Exception Type | Condition |
---|---|
SecurityException | The caller does not have the appropriate SecurityPermission. |
If this thread is not currently blocked in a wait, sleep, or join state, it will be interrupted when it next begins to block.
Thread Class | Thread Members | System.Threading Namespace | ThreadState