Google API Client Library for .NET  1.10.0
Public Member Functions | List of all members
Google.Apis.Util.Store.StorageDataStore Class Reference

Windows Store data store that implements IDataStore. This store creates a different file for each combination of type and key. More...

Inheritance diagram for Google.Apis.Util.Store.StorageDataStore:
Google.Apis.Util.Store.IDataStore Google.Apis.Util.Store.IDataStore

Public Member Functions

async Task StoreAsync< T > (string key, T value)
 Asynchronously stores the given value for the given key (replacing any existing value). More...
 
async Task DeleteAsync< T > (string key)
 Asynchronously deletes the given key. The type is provided here as well because the "real" saved key should contain type information as well, so the data store will be able to store the same key for different types. More...
 
async Task< T > GetAsync< T > (string key)
 Asynchronously returns the stored value for the given key or null if not found. More...
 
async Task ClearAsync ()
 Asynchronously clears all values in the data store. More...
 
async Task StoreAsync< T > (string key, T value)
 Asynchronously stores the given value for the given key (replacing any existing value). More...
 
async Task DeleteAsync< T > (string key)
 Asynchronously deletes the given key. The type is provided here as well because the "real" saved key should contain type information as well, so the data store will be able to store the same key for different types. More...
 
async Task< T > GetAsync< T > (string key)
 Asynchronously returns the stored value for the given key or null if not found. More...
 
async Task ClearAsync ()
 Asynchronously clears all values in the data store. More...
 

Detailed Description

Windows Store data store that implements IDataStore. This store creates a different file for each combination of type and key.

Windows phone data store that implements IDataStore. This store creates a different file for each combination of type and key.

Member Function Documentation

async Task Google.Apis.Util.Store.StorageDataStore.ClearAsync ( )
inline

Asynchronously clears all values in the data store.

Implements Google.Apis.Util.Store.IDataStore.

async Task Google.Apis.Util.Store.StorageDataStore.ClearAsync ( )
inline

Asynchronously clears all values in the data store.

Implements Google.Apis.Util.Store.IDataStore.

async Task Google.Apis.Util.Store.StorageDataStore.DeleteAsync< T > ( string  key)
inline

Asynchronously deletes the given key. The type is provided here as well because the "real" saved key should contain type information as well, so the data store will be able to store the same key for different types.

Template Parameters
TThe type to delete from the data store.
Parameters
keyThe key to delete.

Implements Google.Apis.Util.Store.IDataStore.

async Task Google.Apis.Util.Store.StorageDataStore.DeleteAsync< T > ( string  key)
inline

Asynchronously deletes the given key. The type is provided here as well because the "real" saved key should contain type information as well, so the data store will be able to store the same key for different types.

Template Parameters
TThe type to delete from the data store.
Parameters
keyThe key to delete.

Implements Google.Apis.Util.Store.IDataStore.

async Task<T> Google.Apis.Util.Store.StorageDataStore.GetAsync< T > ( string  key)
inline

Asynchronously returns the stored value for the given key or null if not found.

Template Parameters
TThe type to retrieve from the data store.
Parameters
keyThe key to retrieve its value.
Returns
The stored object.

Implements Google.Apis.Util.Store.IDataStore.

async Task<T> Google.Apis.Util.Store.StorageDataStore.GetAsync< T > ( string  key)
inline

Asynchronously returns the stored value for the given key or null if not found.

Template Parameters
TThe type to retrieve from the data store.
Parameters
keyThe key to retrieve its value.
Returns
The stored object.

Implements Google.Apis.Util.Store.IDataStore.

async Task Google.Apis.Util.Store.StorageDataStore.StoreAsync< T > ( string  key,
value 
)
inline

Asynchronously stores the given value for the given key (replacing any existing value).

Template Parameters
TThe type to store in the data store.
Parameters
keyThe key.
valueThe value to store.

Implements Google.Apis.Util.Store.IDataStore.

async Task Google.Apis.Util.Store.StorageDataStore.StoreAsync< T > ( string  key,
value 
)
inline

Asynchronously stores the given value for the given key (replacing any existing value).

Template Parameters
TThe type to store in the data store.
Parameters
keyThe key.
valueThe value to store.

Implements Google.Apis.Util.Store.IDataStore.


The documentation for this class was generated from the following file: