Argentini.Halide.H3Config.GetKeyAsInt32 C# (CSharp) Метод

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

Retrieve the value of an application setting from the Web.config file.
public static GetKeyAsInt32 ( String keyName ) : Int32?
keyName String Key name for which a value should be returned.
Результат Int32?
        public static Int32? GetKeyAsInt32(String keyName)
        {
            Int32? value = null;

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

            return value;
        }

Same methods

H3Config::GetKeyAsInt32 ( String keyName, Int32 defaultValue ) : Int32
H3Config::GetKeyAsInt32 ( String keyName, Int32 defaultValue, String sectionName ) : Int32
H3Config::GetKeyAsInt32 ( String keyName, String defaultValue ) : Int32
H3Config::GetKeyAsInt32 ( String keyName, String defaultValue, String sectionName ) : Int32