Skip to content
OnMSFT.com
  • Home
  • About
  • Contact
  • Windows
  • Surface
  • Xbox
  • How-To
  • OnPodcast
  • Edge
  • Teams
  • Gaming
Menu
  • Home
  • About
  • Contact
  • Windows
  • Surface
  • Xbox
  • How-To
  • OnPodcast
  • Edge
  • Teams
  • Gaming
  1. Home
  2. News
  3. Microsoft explains locally storing app data for Windows 10 – onmsft.com

Microsoft explains locally storing app data for Windows 10 – onmsft.com

Kit McDonald Kit McDonald
May 10, 2016
3 min read

The Windows App Team has written up yet another blog post to inform developers about their options when it comes to storing app data. The team has been focusing on building knowledge on the building blocks of app development and encouraging developers to build on and convert their applications to the Universal Windows Platform. A month ago, we even saw Microsoft’s porting guide for apps to convert from Silverlight to UWP.

The blog series has already covered roaming data and utilizing cloud providers, but this post specifically focused on the local types of data storage. What that means is the data that is stored directly in the device’s files instead of being shared multiple installations.

Developers will need to decide which type works best with their application. There are two types of app data: Files and settings. Files include the data that the application needs to store binary and custom types of data. The settings is best used for saving the app status and user preferences through a variety of data types:

  • UInt8, Int16, UInt16, Int32, UInt32, Int64, UInt64, Single, Double
  • Boolean
  • Char16, String
  • DateTime, TimeSpan
  • GUID, Point, Size, Rect
  • ApplicationDataCompositeValue — a set of related app settings that must be serialized and deserialized atomically

As most developers know, the data can be stored in three possible locations on the device: Local, LocalCache, and Temporary. The best part about data stored in the Local folder is that the information can be backed up with the App Data Backup just in case. This also means, however, that security isn’t guaranteed. Developers using the Local folder should avoid storing personal information, credentials, and data that are tied to a specific device.

Local folders can hold both files and settings. The best part about data stored in the Local folder is that the information can be backed up with the App Data Backup just in case. This also means, however, that security isn’t guaranteed. Developers using the Local folder should avoid storing personal information, credentials, and data that are tied to a specific device. Furthermore, the blog states that using the Credential Locker feature is recommended to ensure the safety of information that should remain private.

LocalCache folders will hold the data after suspension or closure of the application, but will not remain through the backup assistant. This is where developers should store authentication, credentials, and any other data that is needed across app sessions but shouldn’t be saved otherwise.

Temporary folders serve exactly the purpose of being temporary. Data in the temporary folder is best used for files that won’t be needed anymore after the application’s use. It’s also good practice to clear the temporary files when an app is initialized to minimize any storage issues.

With these options in mind, developers will be able to make a more informed decision on how exactly to store the data locally on devices. To read more into the detail of how to implement data storage, check out the official blog written by Hector Barbera from the Developer Ecosystem and Platform.

Share This Post:

Share this article:
Tags:
Developers Universal Windows Platform Windows 10 Apps
Previous Article Download Visual Studio 15 Preview 2 today for fixes and improved experiences Next Article Deal: Amazon offers up some great prices on Logitech PC accessories

Related Articles

State of Decay 3 Playtests Confirmed With Mutated Zombies and Co-op

State of Decay 3 Playtests Confirmed With Mutated Zombies and Co-op

April 5, 2026
Starfield launches on PS5 with 4K visual mode, 60FPS performance option, DualSense features, and new DLC available at release for players

Starfield Launches on PS5 With Two Modes and Full DualSense Support

April 5, 2026

ASUS Accused of Failing to Fix Laptop After 10 RMAs, User Denied 11th Request

April 5, 2026

Leave a Comment Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • State of Decay 3 Playtests Confirmed With Mutated Zombies and Co-op
  • Starfield Launches on PS5 With Two Modes and Full DualSense Support
  • ASUS Accused of Failing to Fix Laptop After 10 RMAs, User Denied 11th Request
  • New Rowhammer Attacks Turn NVIDIA GPUs Into a System-Level Security Risk
  • Titan Army U275M could push gaming monitors to 1060Hz with dual-mode display

Recent Comments

  1. XxRIVTYxX on Intel Says It Tried to Help Before Crimson Desert Dropped Arc Support
  2. Gaurav Kumar on Chrome Prepares Nudge to ‘Move Tabs to the Side’ as Vertical Tabs Near Release
OnMSFT.com

The Tech News Site

Categories

  • Windows
  • Surface
  • Xbox
  • How-To
  • OnPodcast
  • Gaming
  • Edge
  • Teams

Recent Posts

  • State of Decay 3 Playtests Confirmed With Mutated Zombies and Co-op
  • Starfield Launches on PS5 With Two Modes and Full DualSense Support
  • ASUS Accused of Failing to Fix Laptop After 10 RMAs, User Denied 11th Request
  • New Rowhammer Attacks Turn NVIDIA GPUs Into a System-Level Security Risk
  • Titan Army U275M could push gaming monitors to 1060Hz with dual-mode display

Quick Links

  • About OnMSFT.com
  • Contact OnMSFT
  • Join Our Team
  • Privacy Policy
© 2010–2026 OnMSFT.com LLC. All rights reserved.
About OnMSFT.comContact OnMSFTPrivacy Policy