Begins to asynchronously lookup the mail exchanger (SMTP server) host names and preference for a domain name.

Namespace:  JHSoftware
Assembly:  JHSoftware.DnsClient (in JHSoftware.DnsClient.dll) Version: 1.0.1.0 (1.0.1.0)

Syntax

C#
public static IAsyncResult BeginLookupMX(
	string domainName,
	DnsClient..::.RequestOptions options,
	AsyncCallback callback,
	Object state
)
Visual Basic (Declaration)
Public Shared Function BeginLookupMX ( _
	domainName As String, _
	options As DnsClient..::.RequestOptions, _
	callback As AsyncCallback, _
	state As Object _
) As IAsyncResult

Parameters

domainName
Type: System..::.String
The domain name to look up. IDNs may be either in native or encoded form (xn--...).
options
Type: JHSoftware..::.DnsClient..::.RequestOptions
The options to use with the DNS request. Specify null/Nothing for default options.
callback
Type: System..::.AsyncCallback
The AsyncCallback delegate.
state
Type: System..::.Object
An object that contains state information for this request.

Return Value

An IAsyncResult that references the asynchronous operation.

Exceptions

ExceptionCondition
System..::.ArgumentExceptionInvalid domain name.
JHSoftware..::.DnsClient..::.NoDnsServersExceptionNo DNS servers where specified, and no DNS servers could be found in this computer's IP configuration

See Also