Click or drag to resize
UtilityGetSetting Method (String, String)
Retrieves the setting corresponding to the specified setting from the app.exe.config file. If the setting isn't found, returns the provided defaultSetting and logs a warning.

Namespace: OpenIIoT.Core
Assembly: OpenIIoT (in OpenIIoT.exe) Version: 0.5.0.39120
Syntax
public static string GetSetting(
	string key,
	string defaultSetting
)

Parameters

key
Type: SystemString
The setting to retrieve.
defaultSetting
Type: SystemString
The default setting to return if the setting can't be retrieved.

Return Value

Type: String
The string value of the retrieved setting.
See Also