다음을 통해 공유


KeyInfo(Int32, Char, ControlKeyStates, Boolean) Constructor

Definition

Initialize a new instance of the KeyInfo class and defines the VirtualKeyCode, Character, ControlKeyState and KeyDown values.

public:
 KeyInfo(int virtualKeyCode, char ch, System::Management::Automation::Host::ControlKeyStates controlKeyState, bool keyDown);
public KeyInfo (int virtualKeyCode, char ch, System.Management.Automation.Host.ControlKeyStates controlKeyState, bool keyDown);
new System.Management.Automation.Host.KeyInfo : int * char * System.Management.Automation.Host.ControlKeyStates * bool -> System.Management.Automation.Host.KeyInfo
Public Sub New (virtualKeyCode As Integer, ch As Char, controlKeyState As ControlKeyStates, keyDown As Boolean)

Parameters

virtualKeyCode
Int32

The virtual key code

ch
Char

The character

controlKeyState
ControlKeyStates

The control key state

keyDown
Boolean

Whether the key is pressed or released

Applies to