ValidationResult Class
Represents a prompt validation result.
public sealed class ValidationResult
- Namespace
- Spectre
.Console
Properties
- string Message
- Gets the validation error message.
- bool Successful
- Gets a value indicating whether or not validation was successful.
Methods
-
static ValidationResult Error
(string) -
Returns a
ValidationResult
representing a validation error. -
static ValidationResult Success
() -
Returns a
ValidationResult
representing successful validation.