mscorlib 2.0.0.0 4.0.0.0 System.EventArgs

A user can interrupt a console application process by simultaneously pressing the modifier key and the console key (Ctrl+C), or the modifier key and the Break console key (Ctrl+Break). The .NET Framework consequently provides a object to the event handler for the event to specify whether the process should be cancelled.

If the property is set to true in the event handler, the process is resumed; otherwise, the process is terminated. By default, the value of the property is false, and the process terminates.

Provides data for the event. This class cannot be inherited.

- Property
  2.0.0.0
  4.0.0.0
  System.Boolean To be added.

  The property is automatically initialized to false when the handler for the event is invoked. The value of the property when the event handler finishes determines whether the current process resumes or terminates.

  In a set operation after Ctrl+C is pressed, specify true to indicate that the current process should resume when the event handler concludes, or false to indicate that the current process should terminate.

  Gets or sets a value that indicates whether simultaneously pressing the modifier key and the console key (Ctrl+C) or the Ctrl+Break keys terminates the current process. The default is false, which terminates the current process.

- Property
  2.0.0.0
  4.0.0.0
  System.ConsoleSpecialKey To be added. To be added.

  Gets the combination of modifier and console keys that interrupted the current process.