PSHostRawUserInterface.ReadKey Method (System.Management.Automation.Host)
MSDN Home
MSDN
MSDN Library
Win32 and COM Development
Administration and Management
Windows PowerShell
Windows PowerShell SDK
Windows PowerShell Managed Ref ...
System.Management.Automation.H ...
PSHostRawUserInterface Class
PSHostRawUserInterface Methods
ReadKey Method
ReadKey Method ()
ReadKey Method (ReadKeyOptions ...
PSHostRawUserInterface Meth ...
FlushInputBuffer Method
GetBufferContents Method
LengthInBufferCells Method
NewBufferCellArray Method
ReadKey Method
ScrollBufferContents Method
SetBufferContents Method
Switch View :
Classic
Lightweight Beta
ScriptFree
Feedback
PSHostRawUserInterface.ReadKey Method
Reads a key from the keyboard device. The variants of this method can read the key with or without required keystroke options.
Overload List
Name
Description
PSHostRawUserInterface.ReadKey ()
Reads a pressed and released keystroke from the keyboard device, blocking processing until a keystroke is typed.
PSHostRawUserInterface.ReadKey (ReadKeyOptions)
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.
See Also
Reference
PSHostRawUserInterface Class
PSHostRawUserInterface Members
System.Management.Automation.Host Namespace
Other Resources
Windows PowerShell SDK
Send comments about this topic to Microsoft.