Excerpt |
---|
Gets an int value from the NodeSettings dictionary by setting name. |
Code Block |
---|
public string GetIntSetting(string name) |
Classes: Settings
Parameters
value name
Setting name corresponding with the dictionary key inside of NodeSettings
Returns
int
An integer value
Example
The following example demonstrates getting an integer value from an integer setting.
Code Block |
---|
var intSetting = Settings.GetIntSetting("Integer Setting"); |
Remarks
Throws a KeyNotFoundException if no setting exists by the parameter name.
Throws an InvalidCastException if the target setting is not of SettingType.Int.
Throws an InvalidOperationException if the target setting has no IntValue.