The UriValidationRule type exposes the following members.

Constructors

  NameDescription
UriValidationRule

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.)
IsRequired
Gets or sets whether empty or null strings will be rejected as invalid. The default value is true, meaning that an empty or null string will be considered invalid.
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.)
UriType
Gets or sets the type of URI that is acceptable (e.g. absolute or relative). The default value is UriKind.Absolute.

See Also