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