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.Interrupt

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

Exceptions

Exception Type Condition
SecurityException The caller does not have the appropriate SecurityPermission.

Remarks

If this thread is not currently blocked in a wait, sleep, or join state, it will be interrupted when it next begins to block.

See Also

Thread Class | Thread Members | System.Threading Namespace | ThreadState