Export (0) Print
Expand All

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

© 2015 Microsoft