/
SettingType Enum

SettingType Enum

An enum containing the possible object types of a Setting.


public enum SettingType

Fields

String

0

String type.

Int

1

Integer type.

Boolean

2

Boolean type.

List

3

List of strings.

ImportLocation

4

String corresponding to a file import path.


Example

The following example demonstrates checking the SettingType of a setting before accessing the appropriate value field.

var setting = Settings.GetSetting("String Setting");
if (setting.Type != SettingType.String)
    throw new Exception("Unexpected setting type.");
var settingValue = setting.StringValue;

Related content

Setting Class
Setting Class
More like this
GetSetting Method
GetSetting Method
More like this
GetListSetting Method
GetListSetting Method
More like this
GetStringSetting Method
GetStringSetting Method
More like this
GetBooleanSetting Method
GetBooleanSetting Method
More like this
Settings Class
Settings Class
More like this