Class
FileStorage

IStorage implementation utilizing the file system storage.

Definition

Constructors

FileStorage()

Initializes a new instance of the FileStorage class. The files representing the stored values go under the current user's temporary folder.

Declaration

cs-api-definition
public FileStorage()

FileStorage(string)

Initializes a new instance of the FileStorage class.

Declaration

cs-api-definition
public FileStorage(string directory)

Parameters

directory

string

The directory which will contain the files representing the stored values.

Properties

Directory

Gets the root directory where data will be stored.

Declaration

cs-api-definition
public string Directory { get; }

Property Value

string

Methods

DeleteMasterKey(string)

Deletes all keys starting with the key parameter along with their values (string or byte array) from the storage.

Declaration

cs-api-definition
public void DeleteMasterKey(string key)

Parameters

key

string

The key that denotes the stored values that should be removed.

Implements IStorage2.DeleteMasterKey(string)