+#if NET_2_0
+ public static IAsyncResult BeginGetHostAddresses (string hostName,
+ AsyncCallback requestCallback, object stateObject)
+ {
+ if (hostName == null)
+ throw new ArgumentNullException ("hostName");
+
+ GetHostAddressesCallback c = new GetHostAddressesCallback (GetHostAddresses);
+ return c.BeginInvoke (hostName, requestCallback, stateObject);
+ }
+
+ public static IAsyncResult BeginGetHostEntry (string hostNameOrAddress,
+ AsyncCallback requestCallback, object stateObject)
+ {
+ if (hostNameOrAddress == null)
+ throw new ArgumentNullException ("hostNameOrAddress");
+
+ GetHostEntryNameCallback c = new GetHostEntryNameCallback (GetHostEntry);
+ return c.BeginInvoke (hostNameOrAddress, requestCallback, stateObject);
+ }
+
+ public static IAsyncResult BeginGetHostEntry (IPAddress hostAddress,
+ AsyncCallback requestCallback, object stateObject)
+ {
+ if (hostAddress == null)
+ throw new ArgumentNullException ("hostAddress");
+
+ GetHostEntryIPCallback c = new GetHostEntryIPCallback (GetHostEntry);
+ return c.BeginInvoke (hostAddress, requestCallback, stateObject);
+ }
+#endif
+
+#if NET_2_0
+ [Obsolete ("Use EndGetHostEntry instead")]
+#endif