The ValidationRule type exposes the following members.

Constructors

  NameDescription
ValidationRule

Methods

  NameDescription
Validate
Perform the validation logic associated with this rule.

Properties

  NameDescription
DefaultMessage
Returns the default error message format string.
Message
Allows a custom error message format string to be specified. Use {0} as a placeholder for the name of the attribute being validated.

See Also