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

Sets the validation error message for the prompt.
public static TextPrompt<T> ValidationErrorMessage<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 validation error message.

Returns