UtilConsoleConsoleChoice(String, ConsoleKey) Method
Allows to prompt the user to select one item from a set of single-character choices.
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.
No code example is currently available or this language may not be supported.
- text String
-
The choice message.
- keys ConsoleKey
-
The set of single-character choices.
ConsoleKey
The resulting
ConsoleKey.
Code example 1.
No code example is currently available or this language may not be supported.
If ConsoleChoice("Continue?", {ConsoleKey.Y, ConsoleKey.N}) = ConsoleKey.N Then
Environment.Exit(0)
Else
' ...
End If
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.