UpdatePropertyCollection() private method

private UpdatePropertyCollection ( ) : bool
return bool
 public void Add(ProviderSettings provider)
 {
     if (provider != null)
     {
         provider.UpdatePropertyCollection();
         this.BaseAdd(provider);
     }
 }
 public void Add(ProviderSettings provider) 
 {
     if (provider != null)
     {
         provider.UpdatePropertyCollection();
         BaseAdd(provider);
     }
 }
Esempio n. 3
0
        protected internal override void Reset(ConfigurationElement parentElement)
        {
            ProviderSettings parentProviders = parentElement as ProviderSettings;

            parentProviders?.UpdatePropertyCollection(); // before reseting make sure the bag is filled in

            base.Reset(parentElement);
        }
        protected internal override void Reset(ConfigurationElement parentElement)
        {
            ProviderSettings settings = parentElement as ProviderSettings;

            if (settings != null)
            {
                settings.UpdatePropertyCollection();
            }
            base.Reset(parentElement);
        }
Esempio n. 5
0
        protected internal override void Unmerge(ConfigurationElement sourceElement,
                                                 ConfigurationElement parentElement,
                                                 ConfigurationSaveMode saveMode)
        {
            ProviderSettings parentProviders = parentElement as ProviderSettings;

            parentProviders?.UpdatePropertyCollection(); // before reseting make sure the bag is filled in

            ProviderSettings sourceProviders = sourceElement as ProviderSettings;

            sourceProviders?.UpdatePropertyCollection(); // before reseting make sure the bag is filled in

            base.Unmerge(sourceElement, parentElement, saveMode);
            UpdatePropertyCollection();
        }
        protected internal override void Unmerge(ConfigurationElement sourceElement, ConfigurationElement parentElement, ConfigurationSaveMode saveMode)
        {
            ProviderSettings settings = parentElement as ProviderSettings;

            if (settings != null)
            {
                settings.UpdatePropertyCollection();
            }
            ProviderSettings settings2 = sourceElement as ProviderSettings;

            if (settings2 != null)
            {
                settings2.UpdatePropertyCollection();
            }
            base.Unmerge(sourceElement, parentElement, saveMode);
            this.UpdatePropertyCollection();
        }
 /// <summary>
 /// Adds a <see cref="T:System.Configuration.ProviderSettings"/> object to the collection.
 /// </summary>
 /// <param name="provider">The <see cref="T:System.Configuration.ProviderSettings"/> object to add.</param>
 public void Add(ProviderSettings provider)
 {
     if (provider == null)
     return;
       provider.UpdatePropertyCollection();
       this.BaseAdd((ConfigurationElement) provider);
 }