Argentini.Halide.H3Config.GetKeyAsString C# (CSharp) Method

GetKeyAsString() public static method

Retrieve the value of an application setting from the Web.config file.
public static GetKeyAsString ( String keyName ) : String
keyName String Key name for which a value should be returned.
return String
        public static String GetKeyAsString(String keyName)
        {
            String value = null;

            if (ConfigurationManager.AppSettings[keyName] != null)
            {
                value = ConfigurationManager.AppSettings[keyName].ToString();
            }

            return value;
        }

Same methods

H3Config::GetKeyAsString ( String keyName, String defaultValue ) : String
H3Config::GetKeyAsString ( String keyName, String defaultValue, String sectionName ) : String