Inheritance: System.Collections.Specialized.NameValueCollection
 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
     }
 }
Example #2
0
 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);
     }
 }
Example #3
0
 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
     }
 }
Example #4
0
 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);
     }
 }
Example #5
0
 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);
        }
Example #7
0
		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);
     }
 }