Пример #1
0
        /// <summary>
        /// Returns the network location of the specified host.
        /// </summary>
        /// <param name="domainID">Identifier of the domain where a
        /// collection is to be created.</param>
        /// <param name="hostID">The host to resolve.</param>
        /// <returns>A Uri object that contains the network location.
        /// </returns>
        static public Uri ResolveHostAddress(string domainID, string hostID)
        {
            Uri networkLocation = null;

            IDomainProvider idp = GetDomainProvider(domainID);

            if (idp != null)
            {
                networkLocation = idp.ResolveHostAddress(domainID, hostID);
            }

            return(networkLocation);
        }