ApplicationDataContainerSettings ApplicationDataContainerSettings ApplicationDataContainerSettings ApplicationDataContainerSettings ApplicationDataContainerSettings Class

Definition

Provides access to the settings in a settings container. The ApplicationDataContainer.Values property returns an object that can be cast to this type.

public : sealed class ApplicationDataContainerSettings : IPropertySet
struct winrt::Windows::Storage::ApplicationDataContainerSettings : IPropertySet
public sealed class ApplicationDataContainerSettings : IPropertySet
Public NotInheritable Class ApplicationDataContainerSettings Implements IPropertySet
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

To get an app's local settings, do the following things. These steps are demonstrated in the LocalSettings example.

  1. Get the value of the static ApplicationData.Current property. This property returns a data store of type ApplicationData.
  2. Get the value of the data store's LocalSettings property. This property returns a data container of type ApplicationDataContainer.
  3. Read the Values property of the data container. This property returns a group of settings of type IPropertySet, which can be cast to the ApplicationDataContainerSettings type.

Collection member lists

Note that for JavaScript, ApplicationDataContainerSettings supports using an index to access items.

Properties

Size Size Size Size Size

Gets the number of related application settings.

Methods

Clear() Clear() Clear() Clear() Clear()

Removes all related application settings.

First() First() First() First() First()

Retrieves an iterator to enumerate the settings in the settings container.

GetView() GetView() GetView() GetView() GetView()

Returns a read-only snapshot of the contents of the settings container.

HasKey(String) HasKey(String) HasKey(String) HasKey(String) HasKey(String)

Determines whether there is an application setting with the specified key.

Insert(String, Object) Insert(String, Object) Insert(String, Object) Insert(String, Object) Insert(String, Object)

Inserts or replaces an application setting.

Lookup(String) Lookup(String) Lookup(String) Lookup(String) Lookup(String)

Retrieves the specified application setting.

Remove(String) Remove(String) Remove(String) Remove(String) Remove(String)

Removes the specified application setting.

Events

MapChanged MapChanged MapChanged MapChanged MapChanged

Occurs when the map changes.

See also