/// <summary> creates a new UserSettingsSubSection </summary> protected override ConfigurationElement CreateNewElement(string elementName) { UserSettingsSubSection secton = new UserSettingsSubSection(); secton.Name = elementName; return(secton); }
/// <summary> /// Adds a new section with the specified name /// </summary> public UserSettingsSubSection Add(string name) { UserSettingsSubSection section = (UserSettingsSubSection)CreateNewElement(name); BaseAdd(section); return(section); }
/// <summary> /// Deep copy of all settings from one configuration to another. /// </summary> public void CopyFrom(UserSettingsSubSectionCollection other) { foreach (UserSettingsSubSection from in other) { UserSettingsSubSection to = this[from.Name]; if (to == null) { to = this.Add(from.Name); } to.CopyFrom(from); } }