다음을 통해 공유


IAsyncStringStorage Interface

Definition

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, CancellationToken)
DeleteIfExistsAsync(String)
GetAllSinceVersionAsync(Int32, CancellationToken)
GetAllSinceVersionAsync(Int32)
GetAsync(String, CancellationToken)
GetAsync(String)
GetStoreIdentityAsync(CancellationToken)

Gets the unique ID for the settings store, which is randomly generated whenever the store is recreated.

SetAsync(NamedVersionedString, CancellationToken)

Creates or changes a setting value. The value provided will replace the existing value only if value.Revision.Revision is equal to the current revision of the value. The revision number increases each time the value is set.

SetAsync(NamedVersionedString)

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.

Applies to