System.Configuration.AppSettingsSection.Reset C# (CSharp) Method

Reset() protected method

protected Reset ( ConfigurationElement parentSection ) : void
parentSection ConfigurationElement
return void
        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
            }
        }