Click or drag to resize
SettingsKeyInfoProvider.GetIntValue Method (String, String, Int32, SiteInfoIdentifier)
Returns the integer value of setting in web.config or value of specified key if setting is not present in web.config file.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 11.0.0
Syntax
C#
public static int GetIntValue(
	string configKey,
	string keyName,
	int settingDefaultValue,
	SiteInfoIdentifier siteIdentifier = null
)

Parameters

configKey
Type: System.String
Web.config key
keyName
Type: System.String
Key name
settingDefaultValue
Type: System.Int32
Default value of the setting when web.config key is missing and database is not available
siteIdentifier (Optional)
Type: CMS.DataEngine.SiteInfoIdentifier
Site identifier (site ID or site name), see SiteInfoIdentifier and InfoIdentifier for more information

Return Value

Type: Int32
Remarks
If the DevelopmentMode is true and if keyName is not found InvalidOperationException is thrown instead.
See Also