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: 12.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
Remarks
If the DevelopmentMode is true and if keyName is not found InvalidOperationException is thrown instead.
See Also