JsonFileStore(string) constructor¶
Defined in
Type: JsonFileStore
Namespace: CrissCross.WPF.UI.Storage
Assembly: CrissCross.WPF.UI.dll
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481
Overloads¶
- 1.
public JsonFileStore(string storeFolderPath) - 2.
public JsonFileStore() - 3.
public JsonFileStore(bool perUser) - 4.
public JsonFileStore(Environment.SpecialFolder folder)
1. Overload¶
public JsonFileStore(string storeFolderPath)
Summary: An implementation of IStore that saves data to a json file.
Parameters
| Name | Type | Description |
|---|---|---|
storeFolderPath | string | The folder inside which the json files for tracked objects will be stored. |
Remarks
Initializes a new instance of the JsonFileStore class. Creates a JsonFileStore that will store files in the specified folder.
2. Overload¶
public JsonFileStore()
Summary: Initializes a new instance of the JsonFileStore class. Creates a JsonFileStore that will store files in a per-user folder (%appdata%[companyname][productname]).
Remarks
CompanyName and ProductName are read from the entry assembly's attributes.
3. Overload¶
public JsonFileStore(bool perUser)
Summary: Initializes a new instance of the JsonFileStore class. Creates a JsonFileStore that will store files in a per-user or per-machine folder. (%appdata% or %allusersprofile% + [companyname][productname]).
Parameters
| Name | Type | Description |
|---|---|---|
perUser | bool | Specified if a per-user or per-machine folder will be used for storing the data. |
Remarks
CompanyName and ProductName are read from the entry assembly's attributes.
4. Overload¶
public JsonFileStore(Environment.SpecialFolder folder)
Summary: Initializes a new instance of the JsonFileStore class. Creates a JsonFileStore that will store files in the specified folder.
Parameters
| Name | Type | Description |
|---|---|---|
folder | SpecialFolder | The folder inside which the json files for tracked objects will be stored. |