次の方法で共有


IStringStorage Interface

Definition

Stores and retrieves strings. Used as an abstraction over the registry and unit-test mocks.

public interface class IStringStorage : System::ComponentModel::INotifyPropertyChanged
public interface IStringStorage : System.ComponentModel.INotifyPropertyChanged
type IStringStorage = interface
    interface INotifyPropertyChanged
Public Interface IStringStorage
Implements INotifyPropertyChanged
Derived
Implements

Remarks

Members of this class may be called on any thread.

Methods

ClearAsync()

Deletes all stored values.

ClearAsync(CancellationToken)

Deletes all stored values.

DeleteIfExistsAsync(String, CancellationToken)

Deletes a stored value.

DeleteIfExistsAsync(String)

Deletes a stored value.

Get(String)

Returns the value and machine-local flag for the named item, or null if the item doesn't exist.

NamesStartingWith(String)

Returns the names of all settings currently stored whose names begin with the given prefix (case insensitive).

SetAsync(String, StringWithMachineLocalFlag, Action, CancellationToken)

Stores a value and machine-local flag under a specified name.

SetAsync(String, StringWithMachineLocalFlag, Action)
SetAsync(String, StringWithMachineLocalFlag)

Stores a value and machine-local flag under a specified name.

Events

PropertyChangedAsync

Raised when a setting value is created, changes, or is deleted.

Applies to