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

BeginGetHostByName() private method

private BeginGetHostByName ( string hostName, AsyncCallback requestCallback, object stateObject ) : IAsyncResult
hostName string
requestCallback AsyncCallback
stateObject object
return IAsyncResult
        public static IAsyncResult BeginGetHostByName(string hostName, AsyncCallback requestCallback, object stateObject)
        {
            if (NetEventSource.IsEnabled) NetEventSource.Enter(null, hostName);

            NameResolutionPal.EnsureSocketsAreInitialized();

            IAsyncResult asyncResult = HostResolutionBeginHelper(hostName, true, true, false, requestCallback, stateObject);

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