ReadKeyOptions Enumeration
Defines the options used to control the behavior of the ReadKey method.
Namespace: System.Management.Automation.Host
Assembly: System.Management.Automation (in System.Management.Automation.dll)
Namespace: System.Management.Automation.Host
Assembly: System.Management.Automation (in System.Management.Automation.dll)
| Member name | Description |
|---|---|
| AllowCtrlC | Allow the CTRL+C key to be processed as a keystroke, as opposed to causing a break event. |
| IncludeKeyDown | Allow key-down events. For more information, see Remarks. |
| IncludeKeyUp | Allow key-up events. For more information, see Remarks. |
| NoEcho | Do not display the character in the window when the key is pressed. |
Either IncludeKeyDown, IncludeKeyUp, or both must be specified in a call to the ReadKey method.
Target Platforms
Windows 98, Windows 2000 , Windows 2000 Server , Windows CE, Windows Server 2008, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional, Windows Vista, Windows Server 2003 R2, Windows XP, Windows 7, Windows 2008 R2, Windows Developer Preview, Windows Server Developer PreviewSend comments about this topic to Microsoft.