Ejemplo n.º 1
0
        /// <summary>
        /// Gets the element key for a specified configuration element.
        /// </summary>
        /// <param name="element">The <see cref="ConfigurationElement"/> to which the key should be returned.</param>
        /// <returns>An <see cref="Object"/> that acts as the key for the specified KeyValueConfigurationElement.</returns>
        protected override object GetElementKey(ConfigurationElement element)
        {
            RepositoryElement are = element as RepositoryElement;

            if (element == null)
            {
                return(null);
            }
            else
            {
                return(are.Name);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Removes a <see cref="RepositoryElement"/> from the collection.
 /// </summary>
 /// <param name="element">The <see cref="RepositoryElement"/> to remove.</param>
 public void Remove(RepositoryElement element)
 {
     BaseRemove(element.Name);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Adds an <see cref="RepositoryElement"/> to an <see cref="RepositoryElementCollection"/> instance when overridden in a derived class.
 /// </summary>
 /// <param name="element">The <see cref="RepositoryElement"/> to add.</param>
 public void Add(RepositoryElement element)
 {
     BaseAdd(element);
 }