SettingsKeyInfoProviderGetBoolValue Method (String, String, Boolean) |
Returns the boolean 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: 10.0.0
Syntax public static bool GetBoolValue(
string configKey,
string keyName,
bool settingDefaultValue
)
Parameters
- configKey
- Type: SystemString
Web.config key - keyName
- Type: SystemString
Name of the setting - settingDefaultValue
- Type: SystemBoolean
Default value of the setting when web.config key is missing and database is not available
Return Value
Type:
BooleanSee Also