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

BeginGetHostAddresses() public static method

public static BeginGetHostAddresses ( string hostNameOrAddress, AsyncCallback requestCallback, object state ) : IAsyncResult
hostNameOrAddress string
requestCallback AsyncCallback
state object
return IAsyncResult
        public static IAsyncResult BeginGetHostAddresses(string hostNameOrAddress, AsyncCallback requestCallback, object state)
        {
            if (NetEventSource.IsEnabled) NetEventSource.Enter(null, hostNameOrAddress);
            NameResolutionPal.EnsureSocketsAreInitialized();

            IAsyncResult asyncResult = HostResolutionBeginHelper(hostNameOrAddress, true, true, true, requestCallback, state);

            if (NetEventSource.IsEnabled) NetEventSource.Exit(null, asyncResult);
            return asyncResult;
        } // BeginResolve