mscorlib(4.0.0.0) API with additions
ThreadAbortException.cs
3 using System.Security;
4 
5 namespace System.Threading
6 {
9  [ComVisible(true)]
10  public sealed class ThreadAbortException : SystemException
11  {
14  public object ExceptionState
15  {
16  [SecuritySafeCritical]
17  get
18  {
19  return Thread.CurrentThread.AbortReason;
20  }
21  }
22 
23  private ThreadAbortException()
24  : base(Exception.GetMessageFromNativeResources(ExceptionMessageKind.ThreadAbort))
25  {
26  SetErrorCode(-2146233040);
27  }
28 
29  internal ThreadAbortException(SerializationInfo info, StreamingContext context)
30  : base(info, context)
31  {
32  }
33  }
34 }
static Thread CurrentThread
Gets the currently running thread.
Definition: Thread.cs:134
Serves as the base class for system exceptions namespace.
Definition: __Canon.cs:3
Describes the source and destination of a given serialized stream, and provides an additional caller-...
object ExceptionState
Gets an object that contains application-specific information related to the thread abort.
Stores all the data needed to serialize or deserialize an object. This class cannot be inherited.
Represents errors that occur during application execution.To browse the .NET Framework source code fo...
Definition: Exception.cs:22
Specifies that the class can be serialized.
The exception that is thrown when a call is made to the M:System.Threading.Thread....
Creates and controls a thread, sets its priority, and gets its status.
Definition: Thread.cs:18