ThreadAbortException

E697528

ThreadAbortException is a special .NET exception type that is thrown to terminate a thread, typically via Thread.Abort, and can be caught but is automatically rethrown by the runtime.

All labels observed (3)

How this entity was disambiguated

Statements (45)

Predicate Object
instanceOf .NET exception type
exception type
abortCanBeCancelled true
abortCancellationMethod Thread.ResetAbort
assemblyQualifiedName System.Threading.ThreadAbortException, mscorlib
baseType System.SystemException
linked to: SystemException
behaviorOnFinally finally blocks still execute when ThreadAbortException is thrown
canBeCaught true
canBeObservedBy code running on the aborted thread
canBeSuppressed false
category threading exception
CLSCompliant true
definedIn mscorlib.dll
documentationUrl https://learn.microsoft.com/dotnet/api/system.threading.threadabortexception
ExceptionState user-supplied state object passed to Thread.Abort(Object)
hasHResult 0x80131530
inheritsFrom System.Exception
SystemException
introducedIn .NET Framework 1.0
linked to: .NET Framework
isAsyncException true
isDiscouragedIn .NET 5+
linked to: .NET (5 and later)
isDiscouragedIn .NET Core
isMarkedObsoleteIn .NET 5+
linked to: .NET (5 and later)
isNotIntendedFor normal application flow control
isNotThrownBy Task cancellation APIs
isPartOf .NET Base Class Library
isPublic true
isSealed true
isSecurityCriticalIn .NET Framework
isSerializable true
isUncommonIn asynchronous programming with async/await
isUsedFor terminating a managed thread
namespace System.Threading
platformSupport .NET Core (limited, Thread.Abort not supported on all platforms)
linked to: .NET Core

.NET Framework on Windows
property ExceptionState
reason raised when a call to Thread.Abort begins terminating the target thread
relatedTo OperationCanceledException
ThreadInterruptedException
rethrowBehavior automatically rethrown at end of catch block
threadContext thrown in the context of the thread being aborted
threadTerminationSemantics represents asynchronous, non-cooperative thread termination
thrownBy Thread.Abort
Thread.Abort(Object)
usageRecommendation avoid using Thread.Abort and ThreadAbortException in new code

How these facts were elicited

Referenced by (4)

Full triples — surface form annotated when it differs from this entity's canonical label.

System.Threading containsType ThreadAbortException
ThreadAbortException property ExceptionState
linked to: ThreadAbortException
ThreadAbortException assemblyQualifiedName System.Threading.ThreadAbortException, mscorlib
linked to: ThreadAbortException
ThreadInterruptedException relatedTo ThreadAbortException