Пример #1
0
        /// <summary>
        /// Add a Third Party Tracking URL.
        /// </summary>
        /// <param name="url">The &lt;parameterized-url&gt; to add to the collection</param>
        /// <param name="urlEncode">true if you need the url to be <see cref="System.Web.HttpUtility.UrlEncode(string)"/></param>
        /// <returns>A new <see cref="ParameterizedUrl" /></returns>
        public ParameterizedUrl AddUrl(string url, bool urlEncode)
        {
            if (urlEncode)
            {
                url = EncodeHelper.UrlEncodeUrl(url);
            }

            ParameterizedUrl retVal = new ParameterizedUrl(url);

            _ParameterizedUrl.Add(retVal);
            return(retVal);
        }
Пример #2
0
 /// <summary>
 /// Add a Third Party Tracking URL.
 /// </summary>
 /// <param name="url">The &lt;parameterized-url&gt; object to add to the collection</param>
 /// <returns>A new <see cref="ParameterizedUrl" /></returns>
 public void AddUrl(ParameterizedUrl url)
 {
     _ParameterizedUrl.Add(url);
 }