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: 13.0.131
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:
BooleanRemarks If the
DevelopmentMode is
true and if
keyName is not found
InvalidOperationException is thrown instead.
See Also