C# Класс Castle.Components.Validator.ValidateLengthAttribute

Наследование: Castle.Components.Validator.AbstractValidationAttribute
Показать файл Открыть проект

Открытые методы

Метод Описание
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