C# Класс Spring.Validation.Validators.EmailValidator

Perform email validations.

This implementation is not guaranteed to catch all possible errors in an email address. For example, an address like [email protected] will pass validator, even though there is no TLD "nowhere".

Наследование: BaseSimpleValidator
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
EmailValidator ( ) : System.Text.RegularExpressions

Creates a new instance of the EmailValidator class.

EmailValidator ( IExpression test, IExpression when ) : System.Text.RegularExpressions

Creates a new instance of the EmailValidator class.

EmailValidator ( string test, string when ) : System.Text.RegularExpressions

Creates a new instance of the EmailValidator class.

Защищенные методы

Метод Описание
Validate ( object objectToValidate ) : bool

Validates the supplied objectToValidate.

In the case of the EmailValidator class, the test should be a string variable that will be evaluated and the object obtained as a result of this evaluation will be checked if it is a valid e-mail address.

Описание методов

EmailValidator() публичный Метод

Creates a new instance of the EmailValidator class.
public EmailValidator ( ) : System.Text.RegularExpressions
Результат System.Text.RegularExpressions

EmailValidator() публичный Метод

Creates a new instance of the EmailValidator class.
public EmailValidator ( IExpression test, IExpression when ) : System.Text.RegularExpressions
test IExpression The expression to validate.
when IExpression The expression that determines if this validator should be evaluated.
Результат System.Text.RegularExpressions

EmailValidator() публичный Метод

Creates a new instance of the EmailValidator class.
public EmailValidator ( string test, string when ) : System.Text.RegularExpressions
test string The expression to validate.
when string The expression that determines if this validator should be evaluated.
Результат System.Text.RegularExpressions

Validate() защищенный Метод

Validates the supplied objectToValidate.
In the case of the EmailValidator class, the test should be a string variable that will be evaluated and the object obtained as a result of this evaluation will be checked if it is a valid e-mail address.
protected Validate ( object objectToValidate ) : bool
objectToValidate object The object to validate.
Результат bool