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
파일 보기 프로젝트 열기: spring-projects/spring-net 1 사용 예제들

공개 메소드들

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