The ConsoleKeyInfo type exposes the following members.

Constructors

  NameDescription
Public methodSupported by the .NET Compact FrameworkConsoleKeyInfo
Initializes a new instance of the ConsoleKeyInfo structure using the specified character, console key, and modifier keys.

Methods

  NameDescription
Public methodSupported by the .NET Compact FrameworkEquals
Tests whether the specified object is equivalent to this ConsoleKeyInfo instance.
(Overrides ValueType..::..Equals(Object).)
Protected methodSupported by the .NET Compact FrameworkFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetHashCode
Returns a hash code of this instance.
(Overrides ValueType..::..GetHashCode()()()().)
Public methodSupported by the .NET Compact FrameworkGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)

Operators

  NameDescription
Public operatorStatic memberSupported by the .NET Compact FrameworkEquality
Tests whether two instaces of the ConsoleKeyInfo structure are equivalent.
Public operatorStatic memberSupported by the .NET Compact FrameworkInequality
Tests whether two instaces of the ConsoleKeyInfo structure are different.

Properties

  NameDescription
Public propertySupported by the .NET Compact FrameworkKey
Gets the console key represented by the current ConsoleKeyInfo object.
Public propertySupported by the .NET Compact FrameworkKeyChar
Gets the Unicode character represented by the current ConsoleKeyInfo object.
Public propertySupported by the .NET Compact FrameworkModifiers
Gets a bitwise combination of System.ConsoleModifier values that specifies one or more modifier keys pressed simultaneously with the console key.

See Also