ISettingsStorageHelper<TKey> Interface
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.
Service interface used to store data using key value pairs.
public interface ISettingsStorageHelper<in TKey>
type ISettingsStorageHelper<'Key> = interface
Public Interface ISettingsStorageHelper(Of In TKey)
- TKey
The type of keys to use for accessing values.
This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.- Derived
Clear() |
Clear all keys and values from the settings store. |
Save<TValue>(TKey, TValue) |
Saves a single item by its key. |
Try |
Deletes a single item by its key. |
Try |
Retrieves a single item by its key. |
Delete<TKey>(ISettings |
Deletes a key from storage. |
Get |
Attempts to read the provided key and return the value. If the key is not found, the fallback value will be used instead. |
Read<TKey,TValue>(ISettings |
Read the key in the storage helper instance and get the value. |
Produkt | Versioner |
---|---|
Windows Community Toolkit | 7.1.0 |