UtilConsoleRegisterConsoleKeyPressEventHandler Method
Namespace: DevCase.Core.Application.ConsoleAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void RegisterConsoleKeyPressEventHandler(
ConsoleKey key,
Action handler
)
public:
static void RegisterConsoleKeyPressEventHandler(
ConsoleKey key,
Action^ handler
)
static member RegisterConsoleKeyPressEventHandler :
key : ConsoleKey *
handler : Action -> unit
No code example is currently available or this language may not be supported.
Parameters
- key ConsoleKey
-
The ConsoleKey to register.
- handler Action
-
The Action delegate to invoke when key is pressed.
Code example.
No code example is currently available or this language may not be supported.
Dim key As ConsoleKey = ConsoleKey.A
RegisterConsoleKeyPressEventHandler(key, Sub() MsgBox($"Key {key} pressed!"))
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.