Compartilhar via


DateTimeRangeValidator 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.

Performs validation on DateTime instances by comparing them to the specified boundaries.

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

Syntax

'Declaration
<ConfigurationElementTypeAttribute(GetType(DateTimeRangeValidatorData))> _
PublicClassDateTimeRangeValidator _
    Inherits RangeValidator(Of DateTime)
[ConfigurationElementTypeAttribute(typeof(DateTimeRangeValidatorData))]
publicclassDateTimeRangeValidator : RangeValidator<DateTime>
[ConfigurationElementTypeAttribute(typeof(DateTimeRangeValidatorData))]
publicref classDateTimeRangeValidator : public RangeValidator<DateTime>
publicclass DateTimeRangeValidator extends RangeValidator<DateTime>

Remarks

nulla null reference (Nothing in Visual Basic) is logged as a failure.

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.RangeValidator<DateTime>
          Microsoft.Practices.EnterpriseLibrary.Validation.Validators.DateTimeRangeValidator

See Also

DateTimeRangeValidator 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.