Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Console::ReadKey Method

 

Obtains the next character or function key pressed by the user.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticReadKey()

Obtains the next character or function key pressed by the user. The pressed key is displayed in the console window.

System_CAPS_pubmethodSystem_CAPS_staticReadKey(Boolean)

Obtains the next character or function key pressed by the user. The pressed key is optionally displayed in the console window.

Return to top
Show:
© 2017 Microsoft