SettingsKeyInfoProviderGetIntValueInternal 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.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax protected virtual int GetIntValueInternal(
string configKey,
string keyName,
int settingDefaultValue,
SiteInfoIdentifier siteIdentifier
)
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
- Type: CMS.DataEngineSiteInfoIdentifier
Site identifier (site ID or site name), see SiteInfoIdentifier and InfoIdentifier for more information
Return Value
Type:
Int32Remarks If the
DevelopmentMode is
true and if
keyName is not found
InvalidOperationException is thrown instead.
See Also