示例#1
0
        public static void ResetCachedFileTimes()
        {
            ApplicationDataCompositeValue cachedFileTimes = null;

            var localSettings = ApplicationData.Current.LocalSettings;

            if (localSettings.Values.ContainsKey(CachedFileTimeName))
            {
                try
                {
                    cachedFileTimes = (ApplicationDataCompositeValue)localSettings.Values[CachedFileTimeName];
                    cachedFileTimes.Clear();
                    localSettings.Values[CachedFileTimeName] = cachedFileTimes;
                }
                catch (Exception)
                {
                }
            }
        }