Skip to main content
Skip table of contents

SettingType Enum

An enum containing the possible object types of a Setting.


CODE
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.

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

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.