SettingsStoreExplorer
SettingsStoreExplorer copied to clipboard
Allow modification under "roaming"
Currently, modification under Roaming is disabled. This should be enabled as it is effectively part of User settings.
Support for Roaming settings was a bit of a quick hack, so I didn't enable writing.
~~Even so, I don't see methods on the ISettingsManager interface for modifying settings.
I will poke around, but I suspect it's not possible.~~
Edit: I see ISettingsManager.SetValueAsync. I will see if that can be used.
I got basic editing operations going: Create and modify new values. But I haven't figured out how to delete values which also means that rename doesn't work (rename clones the existing value using the new name and then deletes the old value). I've sent email to the VS feature owner.
@pharring
Are you planning on coming back to this again at some time?
Only if there's overwhelming demand. Here's what I got back from the Settings Store feature owner:
There isn’t a way to delete settings through the settings manager API, sorry. You could call ProfileHttpClient.DeleteAttributeAsync directly (which requires wiring up authentication yourself and also replicating some implementation details of the settings manager around setting name transformations) but I’m not sure that’s exactly the effect you want because it deletes from the online store directly, not the local cache (which is what you’re looking at when you use ISettingsManager).