The UniqueValidationRule type exposes the following members.

Constructors

  NameDescription
UniqueValidationRuleOverloaded.

Methods

  NameDescription
Validate
Perform the validation logic associated with this rule.
(Overrides ValidationRule..::.Validate(ValidationContext).)

Properties

  NameDescription
DefaultMessage
Returns the default error message format string.
(Overrides ValidationRule..::.DefaultMessage.)
IncludeDeleted
Gets or sets whether to include soft-deleted items in the uniqueness check.
Message
Allows a custom error message format string to be specified. Use {0} as a placeholder for the name of the attribute being validated.
(Inherited from ValidationRule.)

See Also