C# Class WebApplications.Utilities.Configuration.Validators.DurationValidator

Inheritance: System.Configuration.ConfigurationValidatorBase
Afficher le fichier Open project: webappsuk/CoreLibraries

Méthodes publiques

Méthode Description
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.

Method Details

CanValidate() public méthode

Determines whether this instance can validate the specified type.
public CanValidate ( Type type ) : bool
type System.Type The type.
Résultat bool

DurationValidator() public méthode

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.
Résultat System

Validate() public méthode

Determines whether the value of an object is valid.
public Validate ( object value ) : void
value object The object value.
Résultat void