System.Console.KeyAvailable Property

Gets a value indicating whether a key press is available in the input stream.

Syntax

public static bool KeyAvailable { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The property value is returned immediately; that is, the Console.KeyAvailable property does not block input until a key press is available.

Use the Console.KeyAvailable property in conjunction with only the Console.ReadKey method, not the Console.Read or Console.ReadLine methods.

Requirements

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