Skip to content

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

NameSummary
.ctorInitializes a new instance of the [JsonFileStore](# class. Creates a JsonFileStore that will store files in a per-user folder.

Properties

NameSummary
FolderPathGets or sets the folder in which the store files will be located.

Methods

NameSummary
GetDataGets the data for the specified id.
SetDataSets the data for the specified id.
ListIdsLists the ids of all stored data.
ClearDataClears the data for the specified id.
ClearAllClears all stored data.
Inherited members