C# Класс WebApplications.Utilities.Configuration.Validators.DurationValidator

Наследование: System.Configuration.ConfigurationValidatorBase
Показать файл Открыть проект

Открытые методы

Метод Описание
CanValidate ( Type type ) : bool

Determines whether this instance can validate the specified type.

DurationValidator ( System.Duration minValue, System.Duration maxValue, bool rangeIsExclusive = false ) : System

Initializes a new instance of the DurationValidator class.

Validate ( object value ) : void

Determines whether the value of an object is valid.

Описание методов

CanValidate() публичный Метод

Determines whether this instance can validate the specified type.
public CanValidate ( Type type ) : bool
type System.Type The type.
Результат bool

DurationValidator() публичный Метод

Initializes a new instance of the DurationValidator class.
is greater than .
public DurationValidator ( System.Duration minValue, System.Duration maxValue, bool rangeIsExclusive = false ) : System
minValue System.Duration The minimum duration allowed to pass validation (inclusive).
maxValue System.Duration The maximum duration allowed to pass validation (exclusive).
rangeIsExclusive bool If set to the value must be outside the given range.
Результат System

Validate() публичный Метод

Determines whether the value of an object is valid.
public Validate ( object value ) : void
value object The object value.
Результат void