Click or drag to resize

ConfigurationManagerGetBoolean Method

Gets the Boolean value for the specified key.

Namespace:  Dynamicweb.Configuration
Assembly:  Dynamicweb.Configuration (in Dynamicweb.Configuration.dll) Version: 4.1.3
Syntax
public virtual bool GetBoolean(
	string key
)

Parameters

key
Type: SystemString
The key that represents the value to get, e.g. "/Globalsettings/System/Database/Trusted"

Return Value

Type: Boolean
The value converted to Boolean if the key exists and is a valid boolean string in configuration file (True, 1, On), otherwise
false
.
See Also