DateRangeAttribute Properties
Specifies the date range settings.
Name | Description |
---|---|
Error |
Gets or sets an error message to associate with a validation control if validation fails.
Inherited from Validation |
Error |
Gets or sets the error message resource name to use in order to look up the Error |
Error |
Gets or sets the resource type to use for error-message lookup if validation fails.
Inherited from Validation |
Error |
Gets the localized validation error message.
Inherited from Validation |
Error |
Gets or sets a value that specifies the text that will be displayed instead of the word ‘days’ in the editor’s error text. |
Error |
Gets or sets a value that specifies the text that will be displayed instead of the word ‘decades’ in the editor’s error text. |
Error |
Gets or sets a value that specifies the text that will be displayed instead of the word ‘months’ in the editor’s error text. |
Error |
Gets or sets a value that specifies the text that will be displayed instead of the word ‘years’ in the editor’s error text. |
Max |
Gets or sets the maximum number of days in a range. |
Max |
Gets or sets the maximum length of the date range. |
Min |
Gets or sets the minimum number of days in a range. |
Min |
Gets or sets the error text to be displayed within the editor’s error frame if the number of selected days is less then the specified minimum value. |
Min |
Specifies the minimum length of the date range. |
Range |
Gets or sets the error text to be displayed within the editor’s error frame if the number of selected days exceeds the specified range limits. |
Requires |
Gets a value that indicates whether the attribute requires validation context.
Inherited from Validation |
Start |
Gets or sets the field name of the start-date editor. |
Type |
When implemented in a derived class, gets a unique identifier for this Attribute. Inherited from Attribute. |
See Also