IsolatedStorageSettings.Remove Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Removes the entry with the specified key.
Assembly: System.Windows (in System.Windows.dll)
Parameters
- key
- Type: System.String
The key for the entry to be deleted.
Implements
IDictionary<TKey, TValue>.Remove(TKey)| Exception | Condition |
|---|---|
| ArgumentNullException | key is null. |
The following example tries to remove a key-value pair for the user's name from the settings dictionary. A message is displayed in a TextBox named tbResults that indicates whether the name was removed or not found. This example is part of a larger example for the IsolatedStorageSettings class.
Show: