InvalidChoiceMessage<T>(TextPrompt<T>, string) Method

Sets the "invalid choice" message for the prompt.
public static TextPrompt<T> InvalidChoiceMessage<T>(this TextPrompt<T> obj, string message)
Namespace
Spectre.Console
Containing Type
TextPromptExtensions

Parameters

T
The prompt result type.

Parameters

TextPrompt<T> obj
The prompt.
string message
The "invalid choice" message.

Returns