Gets the setting value by the specific key.

Namespace: DotNetNuke.Entities.Controllers
Assembly: 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

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

See Also