Excerpt |
---|
Gets a list value from the NodeSettings dictionary by setting name. |
Code Block |
---|
public string GetListSetting(string name) |
Classes: Settings
Parameters
value name
Setting name corresponding with the dictionary key inside of NodeSettings
Returns
List<string>
A list of values.
Example
The following example demonstrates getting a list of strings from a list type setting.
Code Block |
---|
var list = Settings.GetListSetting("List Setting"); |
Remarks
Throws a KeyNotFoundException if no setting exists by the parameter name.
Throws an InvalidCastException if the target setting is not of SettingType.List.