The Labs \ Source Viewer \ SSCLI \ System \ ConsoleSpecialKey

  1. // ==++==
  2. //
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. //
  14. // ==--==
  15. /*=============================================================================
  16. **
  17. ** Class: ConsoleSpecialKey
  18. **
  19. **
  20. ** Purpose: This enumeration represents how a process can be interrupted with
  21. **          a cancel request from the user, like Control-C and Control-Break.
  22. **          We may eventually add in a small number of other cases.
  23. **
  24. **
  25. =============================================================================*/
  26. using System.Runtime.InteropServices;
  27. namespace System
  28. {
  29.     [Serializable()]
  30.    
  31.     public enum ConsoleSpecialKey
  32.     {
  33.         // We realize this is incomplete, and may add values in the future.
  34.         ControlC = 0,
  35.         ControlBreak = 1
  36.     }
  37. }

Developer Fusion