The following example demonstrates getting a list setting and checking the type before accessing the appropriate value on the setting.
var setting = Settings.GetSetting("List Setting");
if (setting.Type != SettingType.List)
throw new Exception("List setting had an unexpected type");
var list = setting.ListValue;
foreach (var value in list)
{
// ...
}
CODE
Remarks
Throws a KeyNotFoundException if no setting exists by the parameter name.
JavaScript errors detected
Please note, these errors can depend on your browser setup.
If this problem persists, please contact our support.