Represents an exception that causes the thread to abort.
Object
Exception
SystemException
ThreadAbortException
[Visual Basic] NotInheritable Public Class ThreadAbortException Inherits SystemException [C#] public sealed class ThreadAbortException : SystemException [C++] public __gc __sealed class ThreadAbortException : public SystemException [JScript] public class ThreadAbortException extends SystemException
Typically, the ThreadAbortException is an exception that is not caught, and the thread dies as a result. All of its members are private.
This is thrown by the virtual machine and should NOT be thrown by any user thread. It is useless to subclass this.
When handling an exception, it is sometimes helpful to have a reference to the exception(s) that caused the error to occur. You can use this constructor to create a chain of new and more meaningful exceptions with the InnerException property set to the inner exception reference. This more meaningful exception can then be thrown to the caller. Note that with this functionality it is possible to create a series of linked exceptions that terminates with the exception that was first thrown. (See Exception for more information.)
ThreadAbortException inherits from the Exception class. The properties of the Exception object as follows:
Property Type | Condition |
---|---|
InnerException | a null reference (in Visual Basic Nothing). |
Message | The empty string. |
Namespace: System.Threading
Assembly: mscorlib.dll