System.Threading.ThreadInterruptedException Class

The exception that is thrown when a System.Threading.Thread is interrupted while it is in a waiting state.

See Also: ThreadInterruptedException Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public class ThreadInterruptedException : SystemException

Remarks

After a thread is created, it is in one or more System.Threading.ThreadState states until it is destroyed. Calling Thread.Interrupt when a thread is in the ThreadState.WaitSleepJoin state will cause a System.Threading.ThreadInterruptedException to be thrown in the target thread. If the thread is not in the ThreadState.WaitSleepJoin state, the exception is not thrown until the thread enters that state. If the thread never blocks, it could complete without ever being interrupted.

System.Threading.ThreadInterruptedException uses the HRESULT COR_E_THREADINTERRUPTED, which has the value 0x80131519.

For a list of initial property values for an instance of System.Threading.ThreadInterruptedException, see the ThreadInterruptedException.#ctor constructors.

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0