ApplicationDataContainer.Values | values property
Gets an object that represents the settings in this settings container.
Syntax
Public ReadOnly Property Values As IPropertySet Get
Property value
Type: IPropertySet
The settings map object.
Remarks
Windows Phone 8
This API is not implemented and will throw an exception if called.
Examples
Use the LocalSettings | localSettings property to get the settings in an ApplicationDataContainer object. Use the ApplicationDataContainer.Values | ApplicationDataContainer.values property to access the settings in the localSettings container. This example creates and reads a setting named exampleSetting.
Call the ApplicationDataContainerSettings.Remove | ApplicationDataContainerSettings.remove method to delete the exampleSetting setting when you have finished with it.
Dim localSettings As Windows.Storage.ApplicationDataContainer = Windows.Storage.ApplicationData.Current.LocalSettings ' Create a simple setting localSettings.Values("exampleSetting") = "Hello Windows"; ' Read data from a simple setting Dim value As Object = localSettings.Values("exampleSetting") If value Is Nothing Then ' No data Else ' Access data in value End If ' Delete a simple setting localSettings.Values.Remove("exampleSetting")
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Minimum supported phone | Windows Phone 8 |
|
Namespace |
|
|
Metadata |
|
|
DLL |
|
See also
- Tasks
- Quickstart: Local application data (JavaScript)
- Quickstart: Local application data (C#/VB/C++)
- Quickstart: Roaming application data (JavaScript)
- Quickstart: Roaming application data (C#/VB/C++)
- Concepts
- Application data overview
- Reference
- ApplicationDataContainer
Build date: 5/16/2013
