Geowigo.Models.CartridgeTag.RemoveAllLogs C# (CSharp) Méthode

RemoveAllLogs() public méthode

Removes all logs associated to this cartridge tag from isolated storage.
public RemoveAllLogs ( ) : void
Résultat void
        public void RemoveAllLogs()
        {
            using (IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication())
            {
                IEnumerable<string> files = GetLogFiles(isf);
                foreach (string filepath in files)
                {
                    try
                    {
                        isf.DeleteFile(filepath);
                    }
                    catch (Exception e)
                    {
                        DebugUtils.DumpException(e, "deleting all logs for cartridge");
                    }
                }
            }
        }