C# 클래스 Castle.Components.Validator.ValidateRangeAttribute

상속: Castle.Components.Validator.AbstractValidationAttribute
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono

공개 메소드들

메소드 설명
Build ( ) : IValidator

Constructs and configures an IValidator instance based on the properties set on the attribute instance.

ValidateRangeAttribute ( System.DateTime min, System.DateTime max ) : System

Initializes a DateTime-based range validator.

ValidateRangeAttribute ( System.DateTime min, System.DateTime max, string errorMessage ) : System

Initializes a DateTime-based range validator.

ValidateRangeAttribute ( RangeValidationType type, object min, object max ) : System

Initializes a range validator of a specified type.

ValidateRangeAttribute ( RangeValidationType type, object min, object max, string errorMessage ) : System

Initializes a range validator of a specified type.

ValidateRangeAttribute ( decimal min, decimal max ) : System

Initializes an decimal-based range validator.

ValidateRangeAttribute ( decimal min, decimal max, string errorMessage ) : System

Initializes an decimal-based range validator.

ValidateRangeAttribute ( int min, int max ) : System

Initializes an integer-based range validator.

ValidateRangeAttribute ( int min, int max, string errorMessage ) : System

Initializes an integer-based range validator.

ValidateRangeAttribute ( string min, string max ) : System

Initializes a string-based range validator.

ValidateRangeAttribute ( string min, string max, string errorMessage ) : System

Initializes a string-based range validator.

메소드 상세

Build() 공개 메소드

Constructs and configures an IValidator instance based on the properties set on the attribute instance.
public Build ( ) : IValidator
리턴 IValidator

ValidateRangeAttribute() 공개 메소드

Initializes a DateTime-based range validator.
public ValidateRangeAttribute ( System.DateTime min, System.DateTime max ) : System
min System.DateTime The minimum value, or DateTime.MinValue if this should not be tested.
max System.DateTime The maximum value, or DateTime.MaxValue if this should not be tested.
리턴 System

ValidateRangeAttribute() 공개 메소드

Initializes a DateTime-based range validator.
public ValidateRangeAttribute ( System.DateTime min, System.DateTime max, string errorMessage ) : System
min System.DateTime The minimum value, or DateTime.MinValue if this should not be tested.
max System.DateTime The maximum value, or DateTime.MaxValue if this should not be tested.
errorMessage string The error message to be displayed if the validation fails.
리턴 System

ValidateRangeAttribute() 공개 메소드

Initializes a range validator of a specified type.
public ValidateRangeAttribute ( RangeValidationType type, object min, object max ) : System
type RangeValidationType The data type to be used by the range validator.
min object The minimum value, or DateTime.MinValue if this should not be tested.
max object The maximum value, or DateTime.MaxValue if this should not be tested.
리턴 System

ValidateRangeAttribute() 공개 메소드

Initializes a range validator of a specified type.
public ValidateRangeAttribute ( RangeValidationType type, object min, object max, string errorMessage ) : System
type RangeValidationType The data type to be used by the range validator.
min object The minimum value, or DateTime.MinValue if this should not be tested.
max object The maximum value, or DateTime.MaxValue if this should not be tested.
errorMessage string The error message to be displayed if the validation fails.
리턴 System

ValidateRangeAttribute() 공개 메소드

Initializes an decimal-based range validator.
public ValidateRangeAttribute ( decimal min, decimal max ) : System
min decimal The minimum value, or decimal.MinValue if this should not be tested.
max decimal The maximum value, or decimal.MaxValue if this should not be tested.
리턴 System

ValidateRangeAttribute() 공개 메소드

Initializes an decimal-based range validator.
public ValidateRangeAttribute ( decimal min, decimal max, string errorMessage ) : System
min decimal The minimum value, or decimal.MinValue if this should not be tested.
max decimal The maximum value, or decimal.MaxValue if this should not be tested.
errorMessage string The error message to be displayed if the validation fails.
리턴 System

ValidateRangeAttribute() 공개 메소드

Initializes an integer-based range validator.
public ValidateRangeAttribute ( int min, int max ) : System
min int The minimum value, or int.MinValue if this should not be tested.
max int The maximum value, or int.MaxValue if this should not be tested.
리턴 System

ValidateRangeAttribute() 공개 메소드

Initializes an integer-based range validator.
public ValidateRangeAttribute ( int min, int max, string errorMessage ) : System
min int The minimum value, or int.MinValue if this should not be tested.
max int The maximum value, or int.MaxValue if this should not be tested.
errorMessage string The error message to be displayed if the validation fails.
리턴 System

ValidateRangeAttribute() 공개 메소드

Initializes a string-based range validator.
public ValidateRangeAttribute ( string min, string max ) : System
min string The minimum value, or String.Empty if this should not be tested.
max string The maximum value, or String.Empty if this should not be tested.
리턴 System

ValidateRangeAttribute() 공개 메소드

Initializes a string-based range validator.
public ValidateRangeAttribute ( string min, string max, string errorMessage ) : System
min string The minimum value, or String.Empty if this should not be tested.
max string The maximum value, or String.Empty if this should not be tested.
errorMessage string The error message to be displayed if the validation fails.
리턴 System