ZeroInstall.Store.Config.ReadFromAppSettings C# (CSharp) Méthode

ReadFromAppSettings() private méthode

Reads settings from ConfigurationManager.AppSettings and transfers them to properties.
private ReadFromAppSettings ( ) : void
Résultat void
        private void ReadFromAppSettings()
        {
            foreach (var property in _metaData)
            {
                string value = ConfigurationManager.AppSettings[property.Key];
                if (!string.IsNullOrEmpty(value))
                    property.Value.Value = value;
            }
        }

Usage Example

Exemple #1
0
        public static Config Load()
        {
            var config = new Config();

            config.ReadFromAppSettings();
            config.ReadFromIniFiles();
            if (WindowsUtils.IsWindowsNT)
            {
                config.ReadFromRegistry();
            }

            return(config);
        }
All Usage Examples Of ZeroInstall.Store.Config::ReadFromAppSettings