Gets the setting value by the specific key.
Namespace: DotNetNuke.Entities.ControllersAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
| C# |
|---|
public double GetDouble( string key, double defaultValue ) |
| Visual Basic |
|---|
Public Function GetDouble ( key As String, defaultValue As Double ) As Double |
Parameters
- key
- Type: System..::..String
The key.
- defaultValue
- Type: System..::..Double
this value will be return if setting's value is empty.
Return Value
host setting's value.Implements
IHostController..::..GetDouble(String, Double)
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentException | key is empty. |