Used in the web.config to provide Urls and refresh periods to automatically update application data files such as 51Degrees.mobi data files.
Наследование: System.Configuration.ConfigurationElement
Пример #1
0
 /// <summary>
 /// Add element into the collection.
 /// </summary>
 /// <param name="element">a <see cref="UrlElement"/> to add to the collection.</param>
 /// <exception cref="System.ArgumentNullException"> thrown if <paramref name="element"/> equals null.</exception>
 public void Add(UrlElement element)
 {
     if (element == null)
     {
         throw new ArgumentNullException("element");
     }
     BaseAdd(element);
 }
Пример #2
0
 /// <summary>
 /// Gets the index of the specific element inside the collection.
 /// </summary>
 /// <param name="element">a <see cref="UrlElement"/> to locate in the the collection.</param>
 /// <returns>The index of the element in the collection.</returns>
 /// <exception cref="System.ArgumentNullException"> thrown if <paramref name="element"/> equals null.</exception>
 public int IndexOf(UrlElement element)
 {
     if (element == null)
     {
         throw new ArgumentNullException("element");
     }
     return(BaseIndexOf(element));
 }
Пример #3
0
        /// <summary>
        /// Removes a <see cref="UrlElement"/> from the collection.
        /// </summary>
        /// <param name="element">a <see cref="UrlElement"/> to remove from the collection.</param>
        /// <exception cref="System.ArgumentNullException"> thrown if <paramref name="element"/> equals null.</exception>
        public void Remove(UrlElement element)
        {
            if (element == null)
                throw new ArgumentNullException("element");

            if (BaseIndexOf(element) >= 0)
                BaseRemove(element.Url);
        }
 /// <summary>
 /// Gets the index of the specific element inside the collection.
 /// </summary>
 /// <param name="element">a <see cref="UrlElement"/> to locate in the the collection.</param>
 /// <returns>The index of the element in the collection.</returns>
 /// <exception cref="System.ArgumentNullException"> thrown if <paramref name="element"/> equals null.</exception>
 public int IndexOf(UrlElement element)
 {
     if (element == null)
         throw new ArgumentNullException("element");
     return BaseIndexOf(element);
 }
 /// <summary>
 /// Add element into the collection.
 /// </summary>
 /// <param name="element">a <see cref="UrlElement"/> to add to the collection.</param>
 /// <exception cref="System.ArgumentNullException"> thrown if <paramref name="element"/> equals null.</exception>
 public void Add(UrlElement element)
 {
     if (element == null)
         throw new ArgumentNullException("element");
     BaseAdd(element);
 }
        /// <summary>
        /// Removes a <see cref="UrlElement"/> from the collection.
        /// </summary>
        /// <param name="element">a <see cref="UrlElement"/> to remove from the collection.</param>
        /// <exception cref="System.ArgumentNullException"> thrown if <paramref name="element"/> equals null.</exception>
        public void Remove(UrlElement element)
        {
            if (element == null)
                throw new ArgumentNullException("element");

            if (BaseIndexOf(element) >= 0)
                BaseRemove(element.Url);
        }