Thursday, March 1, 2018

Universal Windows Application: What kind of data can be stored for UWP app?

There are basically two types:

  • App data
  • User Data


First of all App Data is different from User Data. App Data consists of data that is specific to a particular app. App data exists as long as the app active and removed when the app is removed.

App data includes:

  • Run time state
  • User preferences
  • Other settings


User data is a data created by the user for the application he has created. User data may be used by more than one app. This data may be manipulated by the user. User data is stored in user's libraries and Microsoft OneDrive.

What data types are in app data?

First of all these are the data types used in app settings:

  • UInt8, Int16, UInt16, Int32, UInt32, Int64, UInt64, Single, Double
  • Boolean
  • Char16, String
  • DateTime, TimeSpan
  • GUID, Point, Size, Rect
  • ApplicationDataCompositeValue


You can also use files to store binary data or to enbale cusomized serialized types.

No comments: