PositiveTimeSpanValidator Class
Provides validation of a TimeSpan object. This class cannot be inherited.
Assembly: System.Configuration (in System.Configuration.dll)
System.Configuration::ConfigurationValidatorBase
System.Configuration::PositiveTimeSpanValidator
| Name | Description | |
|---|---|---|
![]() | PositiveTimeSpanValidator() | Initializes a new instance of the PositiveTimeSpanValidator class. |
| Name | Description | |
|---|---|---|
![]() | CanValidate(Type^) | Determines whether the object type can be validated.(Overrides ConfigurationValidatorBase::CanValidate(Type^).) |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
![]() | Validate(Object^) | Determines whether the value of an object is valid.(Overrides ConfigurationValidatorBase::Validate(Object^).) |
The PositiveTimeSpanValidator is used to ensure a TimeSpan object meets specific criteria. The CanValidate method determines whether the object type being validated matches the expected type. The object being validated is passed as a parameter of the Validate method. To pass validation, the object being validated must be a positive TimeSpan value.
Available since 2.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

