Share via


RelativeDateTimeValidator Class

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Validates a DateTime value by checking it belongs to a range relative to the current date.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Validation.Validators
Assembly:  Microsoft.Practices.EnterpriseLibrary.Validation (in Microsoft.Practices.EnterpriseLibrary.Validation.dll)

Syntax

'Declaration
<ConfigurationElementTypeAttribute(GetType(RelativeDateTimeValidatorData))> _
PublicClassRelativeDateTimeValidator _
    Inherits ValueValidator(Of DateTime)
[ConfigurationElementTypeAttribute(typeof(RelativeDateTimeValidatorData))]
publicclassRelativeDateTimeValidator : ValueValidator<DateTime>
[ConfigurationElementTypeAttribute(typeof(RelativeDateTimeValidatorData))]
publicref classRelativeDateTimeValidator : public ValueValidator<DateTime>
publicclass RelativeDateTimeValidator extends ValueValidator<DateTime>

Inheritance Hierarchy

System.Object
  Microsoft.Practices.EnterpriseLibrary.Validation.Validator
    Microsoft.Practices.EnterpriseLibrary.Validation.Validator<DateTime>
      Microsoft.Practices.EnterpriseLibrary.Validation.Validators.ValueValidator<DateTime>
        Microsoft.Practices.EnterpriseLibrary.Validation.Validators.RelativeDateTimeValidator

See Also

RelativeDateTimeValidator Members

Microsoft.Practices.EnterpriseLibrary.Validation.Validators Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.