ABB.Swum.Utilities.SwumConfiguration.GetFileSetting C# (CSharp) Метод

GetFileSetting() публичный статический Метод

Gets the value of the specified configuration setting, which is assumed to be a file path. If the path is relative, it is expanded to a full path, using the directory of the configuration file.
public static GetFileSetting ( string key ) : string
key string The name of the setting to retrieve.
Результат string
        public static string GetFileSetting(string key)
        {
            string filePath = GetSetting(key);
            if (filePath != null && !Path.IsPathRooted(filePath))
            {
                //relative path, so prepend with location of the config file
                filePath = Path.Combine(Path.GetDirectoryName(config.FilePath), filePath);
            }
            return filePath;
        }
    }