IAsyncStringStorage Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Stores and retrieves strings. Used as an abstraction over the settings service in the hub and unit-test mocks.
public interface class IAsyncStringStorage : System::ComponentModel::INotifyPropertyChanged
public interface IAsyncStringStorage : System.ComponentModel.INotifyPropertyChanged
type IAsyncStringStorage = interface
interface INotifyPropertyChanged
Public Interface IAsyncStringStorage
Implements INotifyPropertyChanged
- Implements
Methods
ClearAsync() | |
ClearAsync(CancellationToken) |
Only used by tests. Does not fire change events. |
DeleteIfExistsAsync(String) | |
DeleteIfExistsAsync(String, CancellationToken) | |
GetAllSinceVersionAsync(Int32) | |
GetAllSinceVersionAsync(Int32, CancellationToken) | |
GetAsync(String) | |
GetAsync(String, CancellationToken) | |
GetStoreIdentityAsync(CancellationToken) |
Gets the unique ID for the settings store, which is randomly generated whenever the store is recreated. |
SetAsync(NamedVersionedString) | |
SetAsync(NamedVersionedString, CancellationToken) |
Creates or changes a setting value. The value provided will replace the existing value only if |
Events
PropertyChangedAsync | |
StoreUpdated |
Indicates the store has been updated, but what specific values may have changed is unknown. Clients maintaining cached copies of data should refetch in this case. |