C# Class ModernApp4Me.WP8.Cache.M4MSettingsPersistence

Enables to store some contents into on the IsolatedStorageSettings.ApplicationSettings. The classe implements the singleton pattern and is thread safe !
Afficher le fichier Open project: smartnsoft/ModernApp4Me

Méthodes publiques

Méthode Description
Add ( string key, object value ) : bool

Adds the business object corresponding to the provided parameter into the Settings by specifying the key.

Get ( string key ) : object

Retrieves the business object stores into the Settings and corresponding to the specifying key.

Remove ( string key ) : bool

Deletes the business object stores into the Settings and corresponding to the specifying key.

Update ( string key, object value ) : bool

Updates the business object stores into the Settings and corresponding to the specifying key.

Private Methods

Méthode Description
M4MSettingsPersistence ( ) : System

Method Details

Add() public méthode

Adds the business object corresponding to the provided parameter into the Settings by specifying the key.
public Add ( string key, object value ) : bool
key string the key corresponding to the business object
value object the business object
Résultat bool

Get() public méthode

Retrieves the business object stores into the Settings and corresponding to the specifying key.
public Get ( string key ) : object
key string the key corresponding to the business object
Résultat object

Remove() public méthode

Deletes the business object stores into the Settings and corresponding to the specifying key.
public Remove ( string key ) : bool
key string the key corresponding to the business object
Résultat bool

Update() public méthode

Updates the business object stores into the Settings and corresponding to the specifying key.
public Update ( string key, object value ) : bool
key string the key corresponding to the business object
value object the business object
Résultat bool