EmailValidator class provides the capability to validate e-mail addresses. More...
Inherits Object.
Public Member Functions | |
| System::ArrayPtr< System::String > | get_DnsServers () const |
| Gets the Dns server list to use in the email validation. More... | |
| void | set_DnsServers (System::ArrayPtr< System::String > value) |
| Sets the Dns server list to use in the email validation. More... | |
| int32_t | get_Timeout () const |
| Gets the length of time (in milliseconds) until the request times out. More... | |
| void | set_Timeout (int32_t value) |
| Sets the length of time (in milliseconds) until the request times out. More... | |
| EmailValidator () | |
| Create an instance of EmailValidator. More... | |
| void | Validate (System::String mailAddress, ValidationPolicy policy, System::SharedPtr< ValidationResult > &result) |
| Validating the email address More... | |
| void | Validate (System::String mailAddress, System::SharedPtr< ValidationResult > &result) |
| Validate email address, with the MailServer validation policy. More... | |
Public Attributes | |
| System::Event< void(System::SharedPtr< System::Object >, System::SharedPtr< Aspose::Email::Tools::Verifications::SyntaxValidatingEventArgs >)> | SyntaxValidating |
| This event occurs when validating the syntax of an email addresss. More... | |
| System::Event< void(System::SharedPtr< System::Object >, System::SharedPtr< Aspose::Email::Tools::Verifications::DomainValidatingEventArgs >)> | DomainValidating |
| This event occurs when validating the domain of an email addresss. More... | |
| System::Event< void(System::SharedPtr< System::Object >, System::SharedPtr< Aspose::Email::Tools::Verifications::MailServerValidatingEventArgs >)> | MailServerValidating |
| This event occurs when validating an email addresss on its mail server. More... | |
Protected Member Functions | |
| virtual | ~EmailValidator () |
EmailValidator class provides the capability to validate e-mail addresses.
| Aspose::Email::Tools::Verifications::EmailValidator::EmailValidator | ( | ) |
Create an instance of EmailValidator.
|
protectedvirtual |
| System::ArrayPtr<System::String> Aspose::Email::Tools::Verifications::EmailValidator::get_DnsServers | ( | ) | const |
Gets the Dns server list to use in the email validation.
| int32_t Aspose::Email::Tools::Verifications::EmailValidator::get_Timeout | ( | ) | const |
Gets the length of time (in milliseconds) until the request times out.
| void Aspose::Email::Tools::Verifications::EmailValidator::set_DnsServers | ( | System::ArrayPtr< System::String > | value | ) |
Sets the Dns server list to use in the email validation.
| void Aspose::Email::Tools::Verifications::EmailValidator::set_Timeout | ( | int32_t | value | ) |
Sets the length of time (in milliseconds) until the request times out.
| void Aspose::Email::Tools::Verifications::EmailValidator::Validate | ( | System::String | mailAddress, |
| System::SharedPtr< ValidationResult > & | result | ||
| ) |
Validate email address, with the MailServer validation policy.
| mailAddress | The Email address to be validated. |
| result | The result of the validation. |
| void Aspose::Email::Tools::Verifications::EmailValidator::Validate | ( | System::String | mailAddress, |
| ValidationPolicy | policy, | ||
| System::SharedPtr< ValidationResult > & | result | ||
| ) |
Validating the email address
| mailAddress | The mail address to be validated. |
| policy | The policy of the validating process. |
| result | The result of the validating process. |
| System::Event<void(System::SharedPtr<System::Object>, System::SharedPtr<Aspose::Email::Tools::Verifications::DomainValidatingEventArgs>)> Aspose::Email::Tools::Verifications::EmailValidator::DomainValidating |
This event occurs when validating the domain of an email addresss.
| System::Event<void(System::SharedPtr<System::Object>, System::SharedPtr<Aspose::Email::Tools::Verifications::MailServerValidatingEventArgs>)> Aspose::Email::Tools::Verifications::EmailValidator::MailServerValidating |
This event occurs when validating an email addresss on its mail server.
| System::Event<void(System::SharedPtr<System::Object>, System::SharedPtr<Aspose::Email::Tools::Verifications::SyntaxValidatingEventArgs>)> Aspose::Email::Tools::Verifications::EmailValidator::SyntaxValidating |
This event occurs when validating the syntax of an email addresss.