mscorlib(4.0.0.0) API with additions
|
Provides data for the E:System.Console.CancelKeyPress event. This class cannot be inherited. More...
Public Attributes | |
ConsoleSpecialKey | SpecialKey => _type |
Gets the combination of modifier and console keys that interrupted the current process. More... | |
Properties | |
bool | Cancel [get, set] |
Gets or sets a value that indicates whether simultaneously pressing the F:System.ConsoleModifiers.Control modifier key and the F:System.ConsoleKey.C console key (Ctrl+C) or the Ctrl+Break keys terminates the current process. The default is false , which terminates the current process. More... | |
Additional Inherited Members | |
![]() | |
EventArgs () | |
Initializes a new instance of the T:System.EventArgs class. More... | |
![]() | |
static readonly EventArgs | Empty = new EventArgs() |
Provides a value to use with events that do not have event data. More... | |
Provides data for the E:System.Console.CancelKeyPress event. This class cannot be inherited.
Definition at line 5 of file ConsoleCancelEventArgs.cs.
ConsoleSpecialKey System.ConsoleCancelEventArgs.SpecialKey => _type |
Gets the combination of modifier and console keys that interrupted the current process.
Definition at line 29 of file ConsoleCancelEventArgs.cs.
|
getset |
Gets or sets a value that indicates whether simultaneously pressing the F:System.ConsoleModifiers.Control modifier key and the F:System.ConsoleKey.C console key (Ctrl+C) or the Ctrl+Break keys terminates the current process. The default is false
, which terminates the current process.
true
if the current process should resume when the event handler concludes; false
if the current process should terminate. The default value is false
; the current process terminates when the event handler returns. If true
, the current process continues. Definition at line 16 of file ConsoleCancelEventArgs.cs.