Mono Class Library: System Namespace

System.ConsoleCancelEventArgs Class

Context passed to a handler on interruption, allows termination of an application. [Edit]

See Also: ConsoleCancelEventArgs Members

System.Object
     System.EventArgs
          System.ConsoleCancelEventArgs

public sealed class ConsoleCancelEventArgs : EventArgs

Remarks

This class is passed as an argument to event handlers that have attached to the Console.CancelKeyPress event.

By default, after the interrupt sequence is generated by the user (typically control-c), the application will exit, unless one of the handlers set the ConsoleCancelEventArgs.Cancel property to true.

[Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0