Class EmailValidator

EmailValidator class

EmailValidator class provides the capability to validate e-mail addresses.

public sealed class EmailValidator

Constructors

NameDescription
EmailValidator()Create an instance of EmailValidator.

Properties

NameDescription
DnsServers { get; set; }Gets or sets the Dns server list to use in the email validation.
Timeout { get; set; }Gets or sets the length of time (in milliseconds) until the request times out.

Methods

NameDescription
BeginValidate(string, ValidationPolicy, out ValidationResult, AsyncCallback, object)Begins an asynchronous validating process for an email address.
EndValidate(out ValidationResult, IAsyncResult)Ends an asynchronous validating process for an email address.
Validate(string, out ValidationResult)Validate email address, with the MailServer validation policy.
Validate(string, ValidationPolicy, out ValidationResult)Validating the email address

Events

NameDescription
event DomainValidatingThis event occurs when validating the domain of an email addresss.
event MailServerValidatingThis event occurs when validating an email addresss on its mail server.
event SyntaxValidatingThis event occurs when validating the syntax of an email addresss.

See Also