System.Net.Dns.Dns.BeginGetHostEntry C# (CSharp) Method

BeginGetHostEntry() public static method

public static BeginGetHostEntry ( string hostNameOrAddress, AsyncCallback requestCallback, object stateObject ) : IAsyncResult
hostNameOrAddress string
requestCallback AsyncCallback
stateObject object
return IAsyncResult
		public static IAsyncResult BeginGetHostEntry (string hostNameOrAddress,
			AsyncCallback requestCallback, object stateObject)
		{
			if (hostNameOrAddress == null)
				throw new ArgumentNullException ("hostName");
			if (hostNameOrAddress == "0.0.0.0" || hostNameOrAddress == "::0")
				throw new ArgumentException ("Addresses 0.0.0.0 (IPv4) " +
					"and ::0 (IPv6) are unspecified addresses. You " +
					"cannot use them as target address.",
					"hostNameOrAddress");

			GetHostEntryNameCallback c = new GetHostEntryNameCallback (GetHostEntry);
			return c.BeginInvoke (hostNameOrAddress, requestCallback, stateObject);
		}

Same methods

Dns.Dns::BeginGetHostEntry ( IPAddress address, AsyncCallback requestCallback, object stateObject ) : IAsyncResult