This documentation is archived and is not being maintained.
ConsoleSpecialKey Enumeration
Visual Studio 2010
Specifies combinations of modifier and console keys that can interrupt the current process.
Assembly: mscorlib (in mscorlib.dll)
| Member name | Description | |
|---|---|---|
| ControlC | The ConsoleModifiers.Control modifier key plus the ConsoleKey.C console key. | |
| ControlBreak | The ConsoleModifiers.Control modifier key plus the BREAK console key. |
The ConsoleCancelEventArgs.SpecialKey property returns the ConsoleSpecialKey enumeration type.
Simultaneously pressing certain key combinations signals the operating system to interrupt the currently running process. The two valid key combinations are ConsoleModifiers.Control plus BREAK (CTRL+BREAK) and ConsoleModifiers.Control plus ConsoleKey.C (CTRL+C).
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: