C# 클래스 ModernApp4Me.WP8.Cache.M4MSettingsPersistence

Enables to store some contents into on the IsolatedStorageSettings.ApplicationSettings. The classe implements the singleton pattern and is thread safe !
파일 보기 프로젝트 열기: smartnsoft/ModernApp4Me

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
M4MSettingsPersistence ( ) : System

메소드 상세

Add() 공개 메소드

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
리턴 bool

Get() 공개 메소드

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
리턴 object

Remove() 공개 메소드

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
리턴 bool

Update() 공개 메소드

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
리턴 bool