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);
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for