Наследование: 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
     }
 }
Пример #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);
     }
 }
Пример #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
     }
 }
Пример #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);
     }
 }
Пример #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);
     }
 }
Пример #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);
        }
Пример #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);
     }
 }