Gets the setting value by the specific key.

Namespace: DotNetNuke.Entities.Controllers
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public bool GetBoolean(
	string key,
	bool defaultValue
)
Visual Basic
Public Function GetBoolean ( 
	key As String,
	defaultValue As Boolean
) As Boolean

Parameters

key
Type: System..::..String
The key.
defaultValue
Type: System..::..Boolean
this value will be return if setting's value is empty.

Return Value

host setting's value.

Implements

IHostController..::..GetBoolean(String, Boolean)

Exceptions

ExceptionCondition
System..::..ArgumentExceptionkey is empty.

See Also