ISettingsStorageHelperExtensions.Delete<TKey> Method
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.
Deletes a key from storage.
public static void Delete<TKey> (this Microsoft.Toolkit.Helpers.ISettingsStorageHelper<TKey> storageHelper, TKey key);
static member Delete : Microsoft.Toolkit.Helpers.ISettingsStorageHelper<'Key> * 'Key -> unit
<Extension()>
Public Sub Delete(Of TKey) (storageHelper As ISettingsStorageHelper(Of TKey), key As TKey)
Type Parameters
- TKey
The type of key used to lookup the object.
Parameters
- storageHelper
- ISettingsStorageHelper<TKey>
The storage helper instance to delete from.
- key
- TKey
The key of the target object.
Exceptions
Throws when the key is not found in storage.