ValidationResult

Represents a validation result.

Represents a validation result.

Properties

Message : string

Gets the validation error message.

Successful : bool

Gets 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.