Edit

Share via


ISettingsStorageHelperExtensions.Delete<TKey> Method

Definition

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.

Applies to