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