protected internal override void Reset(ConfigurationElement parentSection) { _KeyValueCollection = null; base.Reset(parentSection); if (!String.IsNullOrEmpty((string)base[s_propFile])) { // don't inherit from the parent SetPropertyValue(s_propFile,null,true); // ignore the lock to prevent inheritence } }
protected internal override void Reset(ConfigurationElement parentSection) { this._KeyValueCollection = null; base.Reset(parentSection); if (!string.IsNullOrEmpty((string)base[s_propFile])) { base.SetPropertyValue(s_propFile, null, true); } }
protected internal override void Reset(ConfigurationElement parentSection) { _KeyValueCollection = null; base.Reset(parentSection); if (!String.IsNullOrEmpty((string)base[s_propFile])) // don't inherit from the parent { SetPropertyValue(s_propFile, null, true); // ignore the lock to prevent inheritence } }
protected internal override void Reset(ConfigurationElement parentSection) { _keyValueCollection = null; base.Reset(parentSection); if (!string.IsNullOrEmpty((string)base[s_propFile])) { // don't inherit from the parent by ignoring locks SetPropertyValue(prop: s_propFile, value: null, ignoreLocks: true); } }
protected internal override object GetRuntimeObject() { KeyValueInternalCollection col = new KeyValueInternalCollection(); foreach (string key in Settings.AllKeys) { KeyValueConfigurationElement ele = Settings[key]; col.Add(ele.Key, ele.Value); } if (!ConfigurationManager.ConfigurationSystem.SupportsUserConfig) { col.SetReadOnly(); } return(col); }
protected internal override object GetRuntimeObject () { KeyValueInternalCollection col = new KeyValueInternalCollection (); foreach (string key in Settings.AllKeys) { KeyValueConfigurationElement ele = Settings[key]; col.Add (ele.Key, ele.Value); } if (!ConfigurationManager.ConfigurationSystem.SupportsUserConfig) col.SetReadOnly (); return col; }
protected internal override void Reset(ConfigurationElement parentSection) { this._KeyValueCollection = null; base.Reset(parentSection); if (!string.IsNullOrEmpty((string) base[s_propFile])) { base.SetPropertyValue(s_propFile, null, true); } }