JsonFileStore class¶
Defined in
Namespace: CrissCross.Avalonia.UI.Storage
Assembly: CrissCross.Avalonia.UI.dll
Full name: CrissCross.Avalonia.UI.Storage.JsonFileStore
Modifiers: public
Summary¶
An implementation of IStore that saves data to a JSON file.
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net471
Class hierarchy
classDiagram
class JsonFileStore
class IStore {
<>
}
IStore <|.. JsonFileStore
Implements: IStore
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [JsonFileStore](# class. Creates a JsonFileStore that will store files in a per-user folder. |
Properties¶
| Name | Summary |
|---|---|
| FolderPath | Gets or sets the folder in which the store files will be located. |
Methods¶
| Name | Summary |
|---|---|
| GetData | Gets the data for the specified id. |
| SetData | Sets the data for the specified id. |
| ListIds | Lists the ids of all stored data. |
| ClearData | Clears the data for the specified id. |
| ClearAll | Clears all stored data. |