Click or drag to resize
SettingsKeyInfoProviderGetIntValue Method (SettingsKeyName)
Returns the integer value of the specified key from the database or 0 if not found.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax
C#
public static int GetIntValue(
	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: Int32
Remarks
If the DevelopmentMode is true and if keyName is not found InvalidOperationException is thrown instead.
See Also