C# 클래스 WebApplications.Utilities.Configuration.Validators.DurationValidator

상속: System.Configuration.ConfigurationValidatorBase
파일 보기 프로젝트 열기: webappsuk/CoreLibraries

공개 메소드들

메소드 설명
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