![]() ![]() ![]() Your app can add new files and new containers to each of these root directories. Within its app data store, each app has system-defined root directories: one for local files, one for roaming files, and one for temporary files. The system also preserves the contents of these data stores when the user installs an update to your app and removes the contents of these data stores completely and cleanly when your app is uninstalled. You don't need to know where or how this data exists, because the system is responsible for managing the physical storage, ensuring that the data is kept isolated from other apps and other users. When an app is installed, the system gives it its own per-user data stores for settings and files. Use files to store binary data or to enable your own, customized serialized types. Composite settings are optimized for small amounts of data, and performance can be poor if you use them for large data sets. The system ensures the integrity of composite settings during concurrent access and roaming. Use composite settings to easily handle atomic updates of interdependent settings. ApplicationDataCompositeValue: A set of related app settings that must be serialized and deserialized atomically.For C#/.NET, use: System.DateTimeOffset, System.TimeSpan.Here are data types you can use for app settings: The app data API enables you to easily create and retrieve settings (we'll show you some examples later in this article). Use settings to store user preferences and application state info. There are two types of app data: settings and files. App data is ideal for storing app-specific user preferences, settings, and favorites. ![]() We recommend that the user's libraries and Microsoft OneDrive be used to store this sort of information. Don't use app data to store user data or anything that users might perceive as valuable and irreplaceable. If the app is removed, all of the app data will be lost as a consequence. Important note about app data: The lifetime of the app data is tied to the lifetime of the app. Often, this is data that the user wants to manipulate or transmit as an entity independent of the app itself, such as a document. User data may be useful or meaningful to more than one app. User data includes document or media files, email or communication transcripts, or database records holding content created by the user. App data is different from user data, data that the user creates and manages when using an app. It includes runtime state, app settings, user preferences, reference content (such as the dictionary definitions in a dictionary app), and other settings. App data is mutable data that is created and managed by a specific app. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |