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
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 6
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);
        }
Ejemplo n.º 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);
     }
 }