ApplicationData.DataChanged | datachanged event

1 out of 3 rated this helpful - Rate this topic

Occurs when roaming application data is synchronized.

Syntax


function onDataChanged(eventArgs) { /* Your code */ }
 
// addEventListener syntax
applicationData.addEventListener("datachanged", onDataChanged);
applicationData.removeEventListener("datachanged", onDataChanged);
 
- or -

applicationData.ondatachanged = onDataChanged;


Event information

Delegate TypedEventHandler<ApplicationData, Object>

Remarks

Windows Phone 8

This API is not implemented and will throw an exception if called.

Examples

This example registers for the DataChanged | datachanged event.



var applicationData = Windows.Storage.ApplicationData.current;

function initialize() 
{
    applicationData.addEventListener("datachanged", datachangeHandler);
}

function dataChangeHandler(eventArgs)
{
    // TODO: Refresh your data
}

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Storage
Windows::Storage [C++]

Metadata

Windows.winmd

DLL

Windows.Storage.ApplicationData.dll

See also

Tasks
Quickstart: Roaming application data (JavaScript)
Quickstart: Roaming application data (C#/VB/C++)
Concepts
Application data overview
Reference
ApplicationData

 

 

Build date: 2/25/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.