Legend
| Method: ConsoleColoredString Validate()
Declarationpublic ConsoleColoredString Validate() SummaryWhen implemented in a class, returns an error message if the contents of the class are invalid, otherwise returns null.RemarksWhen CommandLineParser invokes this method, all parsed commands and options have already been populated. This method can thus alter the class in application-specific ways, perform further parsing, or further validate the options for constraints such as mutual exclusivity.
To report a validation error, this method can either return the text of the error message, or throw a CommandLineValidationException. The message is passed to the user in the same way as other parse
errors (for example, see CommandLineParser |