[This is preliminary documentation and is subject to change.]
Reasons for Closing event
Namespace: ToolsAssembly: Tools.Win (in Tools.Win.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
public enum ConsoleClosingReason |
| Visual Basic |
|---|
Public Enumeration ConsoleClosingReason |
| Visual C++ |
|---|
public enum class ConsoleClosingReason |
| F# |
|---|
type ConsoleClosingReason |
| JScript |
|---|
public enum ConsoleClosingReason |
Members
| Member name | Value | Description | |
|---|---|---|---|
| CtrlC | 0 | CTRL+C was pressed | |
| CtrlBreak | 1 | CTRL+Break was pressed | |
| Close | 2 | Console window is closing. Either because user clicked close button of window or closed application from task manager. | |
| ShutDown | 4 | System si shutting down. Only services can receive this event. Interactive applications are not present at shut down time. | |
| LogOff | 3 | User is logging of. Only services can receive this event. Interactive applications are not present at log-off time. | |
| IsFlags | Gets value indicating if given value is of enum type which has FlagsAttribute applied | ||
| GetName | Gets name of given enumeration value | ||
| GetConstant | Gets constant field that represents given enum value | ||
| GetValue | Gets value of enum in its unedlying type | ||
| IsDefined | Gets value idicating if given value is defined as constant in enumeration |