在IsolatedStorageSettings.ApplicationSettings中我有5个字符串,在注销后我只想删除" userClient",但它会清除所有字符串。
private static void ClearAllAndGoToSignIn()
{
App.MainViewModel.UserDetails = new UserItem();
App.MainViewModel.ReceiversList.Clear();
App.MainViewModel.TimelineList.Clear();
if (IsolatedStorageSettings.ApplicationSettings.Contains("userClient"))
{ IsolatedStorageSettings.ApplicationSettings.Remove("userClient"); }
IsolatedStorageSettings.ApplicationSettings.Save();
Storage.ClearStorage();
Application.Current.Terminate();
}