ThreadAbortException.cs 517 B

12345678910111213141516171819202122232425262728
  1. //
  2. // System.Threading.ThreadAbortException.cs
  3. //
  4. // Author:
  5. // Dick Porter ([email protected])
  6. //
  7. // (C) Ximian, Inc. http://www.ximian.com
  8. //
  9. using System.Runtime.CompilerServices;
  10. namespace System.Threading
  11. {
  12. [Serializable]
  13. public sealed class ThreadAbortException : SystemException
  14. {
  15. private ThreadAbortException () : base ("Thread was being aborted")
  16. {
  17. HResult = unchecked ((int) 0x80131530);
  18. }
  19. public object ExceptionState {
  20. get {
  21. return Thread.CurrentThread.abort_state;
  22. }
  23. }
  24. }
  25. }