C# 클래스 Open.Core.Common.IsolatedStorageModelBase

Base class for settings that are persisted to isolated storage on the client.
상속: ModelBase
파일 보기 프로젝트 열기: philcockfield/Open.TestHarness.SL

Private Properties

프로퍼티 타입 설명
GetStore System.IO.IsolatedStorage.IsolatedStorageSettings
GetStoreFile System.IO.IsolatedStorage.IsolatedStorageFile
IncreaseQuotaTo bool
OnCleared void
OnClearing void
OnSaved void
OnSaving void
ProcessAutoSave void
SaveInternal System.IO.IsolatedStorage.IsolatedStorageException

공개 메소드들

메소드 설명
Clear ( ) : void

Removes all the model's items from the Store.

This does not clear the entire store, just the items associated with this model.

DelaySave ( ) : void

Starts the delayed Save action.

IncreaseQuotaBy ( double megabytes ) : bool

Attempts to increase the quota by the specified number of megabytes.

IncreaseQuotaTo ( double megabytes ) : bool

Attempts to increase the quota by the specified number of megabytes.

Save ( ) : bool

Saves the settings to disk.

Save ( double autoIncrementQuotaBy ) : bool

Saves the settings to disk.

보호된 메소드들

메소드 설명
IsolatedStorageModelBase ( IsolatedStorageType storeType, string id ) : System

Constructor.

OnBeforeClear ( ) : void

Invoked immediately before the Clear operation. Use this to perform pre-clear operations.

This method is not called if a listener to the 'Clearing' event cancelled the operation.

OnBeforeSave ( ) : void

Invoked immediately before the Save operation. Use this to perform pre-save operations.

This method is not called if a listener to the 'Saving' event cancelled the operation.

비공개 메소드들

메소드 설명
GetStore ( IsolatedStorageType storeType ) : System.IO.IsolatedStorage.IsolatedStorageSettings
GetStoreFile ( IsolatedStorageType storeType ) : IsolatedStorageFile
IncreaseQuotaTo ( long bytes ) : bool
OnCleared ( ) : void
OnClearing ( CancelEventArgs e ) : void
OnSaved ( ) : void
OnSaving ( CancelEventArgs e ) : void
ProcessAutoSave ( ) : void
SaveInternal ( ) : IsolatedStorageException

메소드 상세

Clear() 공개 메소드

Removes all the model's items from the Store.
This does not clear the entire store, just the items associated with this model.
public Clear ( ) : void
리턴 void

DelaySave() 공개 메소드

Starts the delayed Save action.
public DelaySave ( ) : void
리턴 void

IncreaseQuotaBy() 공개 메소드

Attempts to increase the quota by the specified number of megabytes.
public IncreaseQuotaBy ( double megabytes ) : bool
megabytes double
리턴 bool

IncreaseQuotaTo() 공개 메소드

Attempts to increase the quota by the specified number of megabytes.
public IncreaseQuotaTo ( double megabytes ) : bool
megabytes double
리턴 bool

IsolatedStorageModelBase() 보호된 메소드

Constructor.
protected IsolatedStorageModelBase ( IsolatedStorageType storeType, string id ) : System
storeType IsolatedStorageType The type of persistence store.
id string The unique identifier of the settings (used as a prefix).
리턴 System

OnBeforeClear() 보호된 메소드

Invoked immediately before the Clear operation. Use this to perform pre-clear operations.
This method is not called if a listener to the 'Clearing' event cancelled the operation.
protected OnBeforeClear ( ) : void
리턴 void

OnBeforeSave() 보호된 메소드

Invoked immediately before the Save operation. Use this to perform pre-save operations.
This method is not called if a listener to the 'Saving' event cancelled the operation.
protected OnBeforeSave ( ) : void
리턴 void

Save() 공개 메소드

Saves the settings to disk.
public Save ( ) : bool
리턴 bool

Save() 공개 메소드

Saves the settings to disk.
/// Is thrown if (after increasing the quota) the file could still not be saved. /// Make sure when saving that a suitable quota increase amount is specified. ///
public Save ( double autoIncrementQuotaBy ) : bool
autoIncrementQuotaBy double The value to attempt to auto increment the quota by if there is not enough space to save.
리턴 bool