The ValidatePresenceAttribute type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| ValidatePresenceAttribute |
Properties
| Name | Description | |
|---|---|---|
| AllowEmptyString |
Gets or sets whether the empty string is treated as present.
The default value is false, i.e. the empty string is treated as
not present and will cause a validation failure.
| |
| Message |
Allows a custom error message to be specified. Use {0} as a placeholder
for the name of the attribute being validated.
(Inherited from ValidationAttribute.) | |
| ValidationRule |
Gets the validation rule.
(Overrides ValidationAttribute..::.ValidationRule.) |