DPB2Class · Utilities and settings

JsonSettings

Configuration for json settings. Properties below describe the available settings.

Namespace: DreamPoeBot.Loki.Common

public class JsonSettings
Reference: DPB2 0.4.5.103Compare the DPB1 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Members and overloads

13 declared here

Search includes inherited members below. 2 matching inherited members →

JsonSettings

MethodLink ↗
public JsonSettings.JsonSettings(string path)

Creates a new JsonSettings instance using the supplied arguments.

Parameters

path
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies path.

GetDefaultValue

MethodLink ↗
protected T JsonSettings.GetDefaultValue<T>(Expression<Func<T>> exp)

Calls GetDefaultValue on JsonSettings with exp and returns T. Open the return contract below before using the result.

Return type: TNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

exp
Parameter type: Expression<Func<T>>No current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies exp.

Returns: The T result.

GetProperty

MethodLink ↗
public object JsonSettings.GetProperty(string name)

Calls GetProperty on JsonSettings with name and returns object. Open the return contract below before using the result.

Return type: objectNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

name
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies name.

Returns: The object result.

GetSettingsFilePath

MethodLink ↗
public static string JsonSettings.GetSettingsFilePath(params string[] subPathParts)

Calls GetSettingsFilePath on JsonSettings with subPathParts and returns string. Open the return contract below before using the result.

Return type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

subPathParts
Parameter type: string[]No current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies sub path parts.

Returns: The string result.

HasProperty

MethodLink ↗
public bool JsonSettings.HasProperty(string name)

Checks for property using the supplied arguments.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

name
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies name.

Returns: A Boolean result. The member description explains the condition being checked.

LoadFrom

MethodLink ↗
protected void JsonSettings.LoadFrom(string file)

Loads from using the supplied arguments.

Return type: voidNo return value.

Parameters

file
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies file.

Save

MethodLink ↗
public void JsonSettings.Save()

Calls Save on JsonSettings without arguments. This overload has no return value.

Return type: voidNo return value.

SaveAs

MethodLink ↗
public void JsonSettings.SaveAs(string file)

Saves as using the supplied arguments.

Return type: voidNo return value.

Parameters

file
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies file.

SetProperty

MethodLink ↗
public void JsonSettings.SetProperty(string name, object value)

Calls SetProperty on JsonSettings with name, value. This overload has no return value.

Return type: voidNo return value.

Parameters

name
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies name.

value
Parameter type: objectNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies value.

Validate

MethodLink ↗
public virtual bool JsonSettings.Validate(out List<string> errors)

Calls Validate on JsonSettings with errors and returns bool. Open the return contract below before using the result.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

errors
Parameter type: List<string>No current DPB page is linked for this built-in, external, generic or compatibility-only type.

Receives errors.

Returns: A Boolean result. The member description explains the condition being checked.

AssemblyPath

PropertyLink ↗
public static string JsonSettings.AssemblyPath { get; }

Reads assembly path on JsonSettings as string. The exact type and accessors are shown below.

Value type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

FilePath

PropertyLink ↗
public string JsonSettings.FilePath { get; internal set; }

Reads or assigns file path on JsonSettings as string. The exact type and accessors are shown below.

Value type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

SettingsPath

PropertyLink ↗
public static string JsonSettings.SettingsPath { get; }

Reads settings path on JsonSettings as string. The exact type and accessors are shown below.

Value type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Inherited members and contracts

2 public members from documented base types and interfaces. Links open the original declaration; overrides are shown only once. Search using the member field above.

public NotificationObject.NotificationObject() Declared by NotificationObject

Creates a new NotificationObject instance.

public PropertyChangedEventHandler NotificationObject.PropertyChanged Declared by NotificationObject

Raised for property changed. Subscribe with the callback type shown in the signature.

Guides using this class

See how these APIs fit together. Labs include complete source; the FollowBot walkthrough teaches you to build your own bot from selected fragments and checkpoints.

DPB2 0.4.5.103 · Reference reviewed 2026-10-30. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.