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

상속: 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.

ValidateLengthAttribute ( int exactLength ) : System

Initializes a new exact length validator.

ValidateLengthAttribute ( int exactLength, String errorMessage ) : System

Initializes a new exact length validator.

ValidateLengthAttribute ( int minLength, int maxLength ) : System

Initializes a new range based length validator.

ValidateLengthAttribute ( int minLength, int maxLength, String errorMessage ) : System

Initializes a new range based length validator.

메소드 상세

Build() 공개 메소드

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

ValidateLengthAttribute() 공개 메소드

Initializes a new exact length validator.
public ValidateLengthAttribute ( int exactLength ) : System
exactLength int The exact length required.
리턴 System

ValidateLengthAttribute() 공개 메소드

Initializes a new exact length validator.
public ValidateLengthAttribute ( int exactLength, String errorMessage ) : System
exactLength int The exact length required.
errorMessage String The error message to be displayed if the validation fails.
리턴 System

ValidateLengthAttribute() 공개 메소드

Initializes a new range based length validator.
public ValidateLengthAttribute ( int minLength, int maxLength ) : System
minLength int The minimum length, or int.MinValue if this should not be tested.
maxLength int The maximum length, or int.MaxValue if this should not be tested.
리턴 System

ValidateLengthAttribute() 공개 메소드

Initializes a new range based length validator.
public ValidateLengthAttribute ( int minLength, int maxLength, String errorMessage ) : System
minLength int The minimum length, or int.MinValue if this should not be tested.
maxLength int The maximum length, or int.MaxValue if this should not be tested.
errorMessage String The error message to be displayed if the validation fails.
리턴 System