Exemple #1
0
        public bool Remove(Object value, [CallerMemberName] string Key = null)
        {
            if (localSettings.Values.ContainsKey(Key))
            {
                localSettings.DeleteContainer(Key);
                return(true);
            }

            return(false);
        }
Exemple #2
0
 public void DeleteSettingString(string key)
 {
     localSettings.DeleteContainer(key);
 }
 /// <summary>
 /// 删除设置容器
 /// </summary>
 public static void RemoveContainer(string containerName)
 => localSettings.DeleteContainer(containerName);
 public void DeleteContainer()
 {
     Windows.Storage.ApplicationDataContainer localSettings = Windows.Storage.ApplicationData.Current.LocalSettings;
     NUTInitialization.debugLog.Info("[CONFIG] Clearing all settings");
     localSettings.DeleteContainer("NUTtyUPSClient");
 }