ConsoleCancelEventArgs Properties

The ConsoleCancelEventArgs type exposes the following members.

  Name Description
Public property Cancel Gets or sets a value that indicates whether simultaneously pressing the Control modifier key and the C console key (Ctrl+C) or the Ctrl+Break keys terminates the current process. The default is false, which terminates the current process.
Public property SpecialKey Gets the combination of modifier and console keys that interrupted the current process.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft