Ends a pending asynchronous lookup of the mail exchanger (SMTP server) host names and preference for a domain name.
Namespace:
JHSoftwareAssembly: JHSoftware.DnsClient (in JHSoftware.DnsClient.dll) Version: 1.0.1.0 (1.0.1.0)
Syntax
| C# |
|---|
public static DnsClient..::.MXHost[] EndLookupMX( IAsyncResult asyncResult ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function EndLookupMX ( _ asyncResult As IAsyncResult _ ) As DnsClient..::.MXHost() |
Parameters
- asyncResult
- Type: System..::.IAsyncResult
An IAsyncResult that stores state information and any user defined data for this asynchronous operation.
Return Value
Mail Exchanger host names and preference - sorted by preference.
Exceptions
| Exception | Condition |
|---|---|
| JHSoftware..::.DnsClient..::.NXDomainException | The requested domain name does not exist (DNS server returned RCode 3 NXDomain). |
| JHSoftware..::.DnsClient..::.NoDataException | The requested domain name exists but has no records of the requested type. |
| JHSoftware..::.DnsClient..::.NoDefinitiveAnswerException | None of the DNS servers returned a definitive answer. |