SettingsKeyInfoProviderGetIntValueInternal Method (String, SiteInfoIdentifier, Int32) |
Returns the integer value of the specified key from the database or 0 if not found.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 11.0.0
Syntax protected virtual int GetIntValueInternal(
string keyName,
SiteInfoIdentifier siteIdentifier,
int defaultValue = 0
)
Parameters
- keyName
- Type: SystemString
Key name - siteIdentifier
- Type: CMS.DataEngineSiteInfoIdentifier
Site identifier (site ID or site name), see SiteInfoIdentifier and InfoIdentifier for more information - defaultValue (Optional)
- Type: SystemInt32
Default value of the setting when web.config key is missing and database is not available
Return Value
Type:
Int32Remarks See Also