This documentation is archived and is not being maintained.

ConsoleCancelEventArgs Members

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

The following tables list the members exposed by the ConsoleCancelEventArgs type.

  Name Description
Public property Cancel Gets or sets a value indicating whether simultaneously pressing the Control modifier key and C console key (CTRL+C) terminates the current process.
Public property SpecialKey Gets the combination of modifier and console keys that interrupted the current process.

  Name Description
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method ToString  Returns a String that represents the current Object. (inherited from Object)