예제 #1
0
 /// <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)
 {
 }
예제 #3
0
 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());
 }
예제 #4
0
 public string Serialize(System.Configuration.ConfigurationElement parentElement, string name, System.Configuration.ConfigurationSaveMode saveMode)
 {
     return(SerializeSection(parentElement, name, saveMode));
 }
예제 #5
0
 /// <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;
 }
예제 #6
0
 public void BaseUnmerge(System.Configuration.ConfigurationElement sourceElement, System.Configuration.ConfigurationElement parentElement, System.Configuration.ConfigurationSaveMode saveMode)
 {
     throw new NotImplementedException();
 }