ApplicationData class used to store the app package data within same device or multiple devices or cloud based on the user needs. In this article I will explain about basic of the class.

ApplicationData allows user to store the data in three different locations and storing method into two different ways.

Package to store the data in three different locations,

  1. Temporary
  2. Local
  3. Roaming

Way of the storage,

  1. Settings
  2. Storage Folder

Storage Locations

Storage ways

ApplicationDataContainerSettings

ApplicationDataContainerSettings class used to store the values in the local or roaming setting (In details of ApplicationDataContainerSettings class we will see upcoming articles).

ApplicationDataContainerSettings handles in dictionary format (Key, value format) and two ways of handle.

Key: Must be unique

  1. Directly store the key, value format in local or roaming settings.
  2. Create a new container and store the value into the local or roaming settings.

Directly store the value in the Local Settings,

Local Settings

Note: Store the value in the container is an object only, to get the value from the container we need to type cast the application.

Create a new container

Example

Create a new container

Get the request to the roaming or local settings to call the CreateContainer function, must pass the Key (first arguments) and second value ApplicationDataCreateDisposition.Always or ApplicationDataCreateDisposition.Existing value.

In the next article we will see the storage location concept.