Share via


IPreferencesService.ResetPreferencesStore(Guid) Method

Definition

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);

Applies to