public TimeSpanValidator ( System.TimeSpan minValue, System.TimeSpan maxValue, bool rangeIsExclusive, long resolutionInSeconds ) : System | ||
minValue | System.TimeSpan | |
maxValue | System.TimeSpan | |
rangeIsExclusive | bool | |
resolutionInSeconds | long | |
Résultat | System |
public TimeSpanValidator(TimeSpan minValue, TimeSpan maxValue, bool rangeIsExclusive, long resolutionInSeconds) {
if (resolutionInSeconds < 0) {
throw new ArgumentOutOfRangeException("resolutionInSeconds");
}
if (minValue > maxValue) {
throw new ArgumentOutOfRangeException("minValue", SR.GetString(SR.Validator_min_greater_than_max));
}
_minValue = minValue;
_maxValue = maxValue;
_resolution = resolutionInSeconds;
_flags = rangeIsExclusive ? ValidationFlags.ExclusiveRange : ValidationFlags.None;
}
TimeSpanValidator::TimeSpanValidator ( System.TimeSpan minValue, System.TimeSpan maxValue ) : System | |
TimeSpanValidator::TimeSpanValidator ( System.TimeSpan minValue, System.TimeSpan maxValue, bool rangeIsExclusive ) : System |