Пример #1
0
        /// <summary>
        /// 取得主机IP
        /// </summary>
        /// <returns></returns>
        public string ZAGetHostIpAddress()
        {
            Silt.Base.Common.Net net = new Silt.Base.Common.Net();
            string strHostIpAddress  = net.GetHostIpAddress();

            return(strHostIpAddress);
        }
Пример #2
0
        /// <summary>
        /// 取得主机名称
        /// </summary>
        /// <returns></returns>
        public string ZAGetHostName()
        {
            Silt.Base.Common.Net net = new Silt.Base.Common.Net();
            string strHostName       = "";

            strHostName = net.GetHostName();
            return(strHostName);
        }