/// <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); } }
/// <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); }
/// <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); }