Andover.Data.Configuration.ConfigurationHelper.GetValueForKey C# (CSharp) Method

GetValueForKey() public static method

public static GetValueForKey ( string key ) : string
key string
return string
        public static string GetValueForKey(string key)
        {
            var settings = Factory.GetConfigNode("andover/settings");
            var node = settings.SelectSingleNode(string.Format("add[@key='{0}']", key));
            bool isInValid = node == null || node.Attributes == null || node.Attributes["value"] == null;
            return isInValid ? string.Empty : node.Attributes["value"].Value;
        }