IPreferencesService.ResetPreferencesStore(Guid) 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 the preference store and all the data it contains.
public:
void ResetPreferencesStore(Guid storeIdentifier);
public void ResetPreferencesStore (Guid storeIdentifier);
abstract member ResetPreferencesStore : Guid -> unit
Public Sub ResetPreferencesStore (storeIdentifier As Guid)
Parameters
- storeIdentifier
- Guid
The preference store identifier.
Examples
The following example removes the preference store.
private static readonly Guid PreferencesKey =
new Guid("{1abb6907-6dff-1638-8323-deadbeef1638}");
IPreferencesService preferences = (IPreferencesService)
_serviceProvider.GetService(typeof(IPreferencesService));
preferences.ResetPreferencesStore(PreferencesKey);