SettingsKeyInfoProviderGetDecimalValue Method (SettingsKeyName) |
Returns the decimal value of the specified key from the database or 0 if not found.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax public static decimal GetDecimalValue(
SettingsKeyName keyName
)
Parameters
- keyName
- Type: CMS.DataEngineSettingsKeyName
Key name in format "[site name].[key name]" for site setting or "[key name]" for global setting, see SettingsKeyName for more information
Return Value
Type:
DecimalRemarks If the
DevelopmentMode is
true and if
keyName is not found
InvalidOperationException is thrown instead.
See Also