这是一个简单的问题,但我找不到答案。
目前我在“myitem'”的本地设置中有一个值,它是数字5.我想完全删除它,就像之前从未设置过一样。我该怎么做?
var localSettings = Windows.Storage.ApplicationData.current.localSettings;
var val = localSettings.values["myitem"]; // This is the number 5
我想知道如何在下面写Obliterate
,其中包含以下内容:
var val = localSettings.values["myitem"]; // This is the number 5
Obliterate(localSettings.values["myitem"]);
var val = localSettings.values["myitem"]; // undefined, never heard of it