[This is preliminary documentation and is subject to change.]

Reasons for Closing event

Namespace: Tools
Assembly: 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 nameValueDescription
CtrlC0CTRL+C was pressed
CtrlBreak1CTRL+Break was pressed
Close2Console window is closing. Either because user clicked close button of window or closed application from task manager.
ShutDown4System si shutting down. Only services can receive this event. Interactive applications are not present at shut down time.
LogOff3User is logging of. Only services can receive this event. Interactive applications are not present at log-off time.
IsFlagsGets value indicating if given value is of enum type which has FlagsAttribute applied
GetNameGets name of given enumeration value
GetConstantGets constant field that represents given enum value
GetValueGets value of enum in its unedlying type
IsDefinedGets value idicating if given value is defined as constant in enumeration

See Also