/// <summary> /// Save the changes to the configuration file. /// </summary> /// <param name="configuration">The configuration that represents the file.</param> /// <param name="saveMode">The save mode.</param> public static void Save(System.Configuration.Configuration configuration, System.Configuration.ConfigurationSaveMode saveMode) { configuration.Save(saveMode); }
protected override void Unmerge(System.Configuration.ConfigurationElement sourceElement, System.Configuration.ConfigurationElement parentElement, System.Configuration.ConfigurationSaveMode saveMode) { }
protected override string SerializeSection(System.Configuration.ConfigurationElement parentElement, string name, System.Configuration.ConfigurationSaveMode saveMode) { System.IO.StringWriter sWriter = new System.IO.StringWriter(System.Globalization.CultureInfo.InvariantCulture); System.Xml.XmlTextWriter xWriter = new System.Xml.XmlTextWriter(sWriter); xWriter.Formatting = System.Xml.Formatting.None; xWriter.Indentation = 4; xWriter.IndentChar = ' '; this.SerializeToXmlElement(xWriter, name); xWriter.Flush(); return(sWriter.ToString()); }
public string Serialize(System.Configuration.ConfigurationElement parentElement, string name, System.Configuration.ConfigurationSaveMode saveMode) { return(SerializeSection(parentElement, name, saveMode)); }
/// <summary> /// Initializes a new instance of the <see cref="AppSettingsFromConfigurationManager" /> class. /// <locDE><para />Initialisiert eine neue Instanz der Klasse <see cref="AppSettingsFromConfigurationManager" />.</locDE> /// </summary> public AppSettingsFromConfigurationManager() { //this.AppName = null; this.ConfigurationUserLevel = System.Configuration.ConfigurationUserLevel.None; this.ConfigurationSaveMode = System.Configuration.ConfigurationSaveMode.Minimal; }
public void BaseUnmerge(System.Configuration.ConfigurationElement sourceElement, System.Configuration.ConfigurationElement parentElement, System.Configuration.ConfigurationSaveMode saveMode) { throw new NotImplementedException(); }