Begins to asynchronously lookup for a domain name and DNS record type.

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

Syntax

C#
public static IAsyncResult BeginLookup(
	string domainName,
	DnsClient..::.RecordType queryType,
	DnsClient..::.RequestOptions options,
	AsyncCallback callback,
	Object state
)
Visual Basic (Declaration)
Public Shared Function BeginLookup ( _
	domainName As String, _
	queryType As DnsClient..::.RecordType, _
	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--...).
queryType
Type: JHSoftware..::.DnsClient..::.RecordType
The record type to look up.
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 or query type.
JHSoftware..::.DnsClient..::.NoDnsServersExceptionNo DNS servers where specified, and no DNS servers could be found in this computer's IP configuration

See Also