JsonFileStore class¶
Defined in
Namespace: CrissCross.WPF.UI.Storage
Assembly: CrissCross.WPF.UI.dll
Full name: CrissCross.WPF.UI.Storage.JsonFileStore
Modifiers: public
Summary¶
An implementation of IStore that saves data to a json file.
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481
Class hierarchy
classDiagram
class JsonFileStore
class IStore {
<>
}
IStore <|.. JsonFileStore
Implements: IStore
Remarks¶
Initializes a new instance of the JsonFileStore class. Creates a JsonFileStore that will store files in the specified folder.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | An implementation of IStore that saves data to a json file. |
Properties¶
| Name | Summary |
|---|---|
| FolderPath | Gets or sets the folder in which the store files will be located. |
Methods¶
| Name | Summary |
|---|---|
| GetData | Loads values from the json file into a dictionary. |
| SetData | Stores the values as a json file. |
| ListIds | Lists the ids. |
| ClearData | Clears the data. |
| ClearAll | Clears all. |