SIPSorcery.SIP.SIPParameterlessURI.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
        public new string ToString()
        {
            try
            {
                string uriStr = m_uri.Scheme.ToString() + SIPURI.SCHEME_ADDR_SEPARATOR;

                uriStr = (User != null) ? uriStr + User + SIPURI.USER_HOST_SEPARATOR + Host : uriStr + Host;

                return uriStr;
            }
            catch(Exception excp)
            {
                logger.Error("Exception SIPParameterlessURI ToString. " + excp.Message);
                throw excp;
            }
        }