Represents a validation result.
Properties
Message
: stringGets the validation error message.
Successful
: boolGets a value indicating whether or not validation was successful.
Methods
public static ValidationResult Error(string message = null)
Returns a ValidationResult representing a validation error.
Parameters:
message (string)The validation error message, or
null to show the default validation error message.Returns:
The validation result.
public static ValidationResult Success()
Returns a ValidationResult representing successful validation.
Returns:
The validation result.