SalesForceBackup/AppSettings.cs
/// <summary>
/// Read the application settings from the App.config.
/// </summary>
Read the application settings from the App.config.
Read the application settings from the App . config .
private static void ReadAllSettings()
        {
            try
            {
                var appSettings = ConfigurationManager.AppSettings;
                if (appSettings.Count == 0) return;
                foreach (var key in appSettings.AllKeys)
                {
                    ValuePairs.Add(key, appSettings[key]);
                }
            }
            catch (ConfigurationErrorsException e)
            {
                Console.WriteLine("Error reading app settings");
                _errorHandler.HandleError(e, (int)Enums.ExitCode.ConfigurationError);
            }
            catch (Exception e)
            {
                _errorHandler.HandleError(e);
            }
        }
private static void ReadAllSettings ( ) { try { var appSettings = ConfigurationManager . AppSettings ; if ( appSettings . Count == 0 ) return ; foreach ( var key in appSettings . AllKeys ) { ValuePairs . Add ( key , appSettings [ key ] ) ; } } catch ( ConfigurationErrorsException e ) { Console . WriteLine ( " " ) ; _errorHandler . HandleError ( e , ( int ) Enums . ExitCode . ConfigurationError ) ; } catch ( Exception e ) { _errorHandler . HandleError ( e ) ; } }
Read the application settings from the App.config.
Read the application settings from the App . config .