SignalDataChanged | signalDataChanged method

ApplicationData.SignalDataChanged | signalDataChanged method

Sends a DataChanged | datachanged event to all registered event handlers.

Syntax


public void SignalDataChanged()

Parameters

This method has no parameters.

Remarks

You can use the SignalDataChanged | signalDataChanged method to fire a DataChanged | datachanged event that you can use to signal other code in your app to reload the local state.

The system automatically fires the DataChanged | datachanged event when the roaming state changes. After those changes are roamed to other devices, any instance of your app that is running on those devices will also be able to respond to the DataChanged | datachanged event by refreshing their roaming state.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

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

Metadata

Windows.winmd

See also

Tasks
Quickstart: Roaming application data (JavaScript)
Store and retrieve settings and other app data
Concepts
Store and retrieve settings and other app data
Reference
ApplicationData

 

 

Show:
© 2016 Microsoft