C# Class System.Windows.Mvvm.Configuration.Stores.FileStore

Represents a store that uses the file system to save the configuration data.
Inheritance: IStore
ファイルを表示 Open project: lecode-official/mvvm-framework

Public Methods

Method Description
FileStore ( string fileName ) : System.IO

Initializes a new FileStore instance.

LoadAsync ( ) : Task

Loads the stores configuration data and returns them as serialized string.

StoreAsync ( string content ) : System.Threading.Tasks.Task

Stores the configuration data.

Method Details

FileStore() public method

Initializes a new FileStore instance.
public FileStore ( string fileName ) : System.IO
fileName string The name of the file where the configuration data is stored.
return System.IO

LoadAsync() public method

Loads the stores configuration data and returns them as serialized string.
public LoadAsync ( ) : Task
return Task

StoreAsync() public method

Stores the configuration data.
public StoreAsync ( string content ) : System.Threading.Tasks.Task
content string The serializes configuration data.
return System.Threading.Tasks.Task