BaseSettingsElement.GetSetting Method (String, String)

<< Click to Display Table of Contents >>

Navigation:  Reference > BNCS Namespace > BaseSettingsElement Class > BaseSettingsElement Methods > GetSetting Method  >

BaseSettingsElement.GetSetting Method (String, String)

Retrieves a setting value based on the provided SettingId. If the setting is not found, the defaultValue is returned.

Namespace: BNCS
Assembly:  BNCS.Core.DriverFramework (in BNCS.Core.DriverFramework.dll)

 

Syntax


public string GetSetting(
 string SettingId,
 string defaultValue
)

Parameters

SettingId

Type: String
The unique identifier of the setting to retrieve

defaultValue

Type: String
The default value to return if the setting is not found

Return Value

The value of the setting if found, otherwise the defaultValue

 

See Also


BaseSettingsElement Class

GetSetting Overload

BNCS Namespace