C# Class BudgetAnalyser.Uwp.ApplicationState.PersistApplicationStateAsXaml

Inheritance: IPersistApplicationState
Afficher le fichier Open project: Benrnz/BudgetAnalyser

Méthodes publiques

Méthode Description
LoadAsync ( ) : Task>

Load the user state from the Xaml file on the local disk.

PersistApplicationStateAsXaml ( [ logger, [ folders ) : System

Initializes a new instance of the PersistApplicationStateAsXaml class.

PersistAsync ( IEnumerable modelsToPersist ) : System.Threading.Tasks.Task

Persist the user data to the Xaml file on the local disk.

Méthodes protégées

Méthode Description
FullFileName ( ) : Task

Gets the full name of the file to save the data into. The file will be overwritten. By default this will save to the application folder with the name BudgetAnalyserAppState.xml.

Private Methods

Méthode Description
HandleCorruptFileFormatGracefully ( Exception exception ) : IEnumerable

Method Details

FullFileName() protected méthode

Gets the full name of the file to save the data into. The file will be overwritten. By default this will save to the application folder with the name BudgetAnalyserAppState.xml.
protected FullFileName ( ) : Task
Résultat Task

LoadAsync() public méthode

Load the user state from the Xaml file on the local disk.
/// This will be thrown if the file is invalid. ///
public LoadAsync ( ) : Task>
Résultat Task>

PersistApplicationStateAsXaml() public méthode

Initializes a new instance of the PersistApplicationStateAsXaml class.
userMessageBox cannot be null.
public PersistApplicationStateAsXaml ( [ logger, [ folders ) : System
logger [
folders [
Résultat System

PersistAsync() public méthode

Persist the user data to the Xaml file on the local disk.
public PersistAsync ( IEnumerable modelsToPersist ) : System.Threading.Tasks.Task
modelsToPersist IEnumerable /// All components in the App that implement so /// the implementation can go get the data to persist. ///
Résultat System.Threading.Tasks.Task