Click or drag to resize
SettingsKeyInfoProviderGetIntValue 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: 10.0.0
Syntax
C#
public static int GetIntValue(
	string configKey,
	string keyName,
	int settingDefaultValue,
	SiteInfoIdentifier siteIdentifier = null
)

Parameters

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

Return Value

Type: Int32
See Also