Reads a key from the keyboard device. The variants of this method can read the key with or without required keystroke options.
|PSHostRawUserInterface.ReadKey ()||Reads a pressed and released keystroke from the keyboard device, blocking processing until a keystroke is typed.|
|PSHostRawUserInterface.ReadKey (ReadKeyOptions)||When overridden in a derived class, reads a pressed, released, or pressed and released keystroke from the keyboard device, blocking processing until a keystroke is typed that matches the specified keystroke options.|
Send comments about this topic to Microsoft.