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)
Dim instance As ReadKeyOptions

public enum ReadKeyOptions
/** @attribute FlagsAttribute() */ 
public enum ReadKeyOptions
public enum ReadKeyOptions
Member nameDescription
AllowCtrlCAllow the CTRL+C key to be processed as a keystroke, as opposed to causing a break event.
IncludeKeyDownAllow key-down events. For more information, see Remarks.
IncludeKeyUpAllow key-up events. For more information, see Remarks.
NoEchoDo 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 Preview

Send comments about this topic to Microsoft.
© 2014 Microsoft. All rights reserved.