/// <summary> /// Asynchronously resolves a host name or IP address to an System.Net.IPHostEntry instance. /// </summary> /// <param name="hostNameOrAddress">The host name or IP address to resolve.</param> /// <param name="requestCallback"> /// An System.AsyncCallback delegate that references the method to invoke when /// the operation is complete. ///</param> /// <param name="stateObject"> /// A user-defined object that contains information about the operation. This /// object is passed to the requestCallback delegate when the operation is complete. /// </param> /// <returns>An System.IAsyncResult instance that references the asynchronous request.</returns> public IAsyncResult BeginGetHostEntry(string hostNameOrAddress, AsyncCallback requestCallback, object stateObject) { GetHostEntryDelegate g = new GetHostEntryDelegate(GetHostEntry); return(g.BeginInvoke(hostNameOrAddress, requestCallback, stateObject)); }
/// <summary> /// Asynchronously resolves a host name or IP address to an System.Net.IPHostEntry instance. /// </summary> /// <param name="hostNameOrAddress">The host name or IP address to resolve.</param> /// <param name="requestCallback"> /// An System.AsyncCallback delegate that references the method to invoke when /// the operation is complete. ///</param> /// <param name="stateObject"> /// A user-defined object that contains information about the operation. This /// object is passed to the requestCallback delegate when the operation is complete. /// </param> /// <returns>An System.IAsyncResult instance that references the asynchronous request.</returns> public IAsyncResult BeginGetHostEntry(string hostNameOrAddress, AsyncCallback requestCallback, object stateObject) { GetHostEntryDelegate g = new GetHostEntryDelegate(GetHostEntry); return g.BeginInvoke(hostNameOrAddress, requestCallback, stateObject); }