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

Inheritance: System.Configuration.ConfigurationValidatorBase
Exibir arquivo Open project: webappsuk/CoreLibraries

Public Methods

Method 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 method

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

DurationValidator() public method

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.
return System

Validate() public method

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