GSF.ServiceProcess.ServiceHelper.LoadSettings C# (CSharp) Method

LoadSettings() public method

Loads saved settings of the ServiceHelper from the config file if the PersistSettings property is set to true.
public LoadSettings ( bool includeServiceComponents ) : void
includeServiceComponents bool A boolean value that indicates whether the settings of are to be loaded.
return void
        public void LoadSettings(bool includeServiceComponents)
        {
            LoadSettings();

            if (!includeServiceComponents)
                return;

            IPersistSettings typedComponent;

            lock (m_serviceComponents)
            {
                foreach (object component in m_serviceComponents)
                {
                    typedComponent = component as IPersistSettings;

                    if ((object)typedComponent != null)
                        typedComponent.LoadSettings();
                }
            }
        }

Same methods

ServiceHelper::LoadSettings ( ) : void
ServiceHelper