The UriValidationRule type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| UriValidationRule |
Methods
| Name | Description | |
|---|---|---|
| Validate |
Perform the validation logic associated with this rule.
(Overrides ValidationRule..::.Validate(ValidationContext).) |
Properties
| Name | Description | |
|---|---|---|
| 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.
|