Mono Class Library: System.Net.Dns Overview | MembersSystem.Net.Dns.EndResolve Method |
Ends an asynchronous query to resolve a host name or IP address. [Edit]
|
- asyncResult
- The System.IAsyncResult object that holds the state information for the asynchronous operation. [Edit]
A System.Net.IPHostEntry object containing address information about a host. [Edit]
Type Reason ArgumentNullException asyncResult is null. [Edit]
This method blocks if the asynchronous operation has not completed.
The Dns.EndResolve(IAsyncResult) method completes an asynchronous request for DNS information that was started with a call to Dns.BeginResolve(string, AsyncCallback, object) . The object specified for the asyncResult parameter is required to be the same object as was returned by the Dns.BeginResolve(string, AsyncCallback, object) method call that began the request.
If the Dns.EndResolve(IAsyncResult) method is invoked via the AsyncCallback delegate specified to the Dns.BeginResolve(string, AsyncCallback, object) method, the asyncResult parameter is the IAsyncResult argument passed to the delegate's method.
[Edit]
Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0