Clipboard.RoamingEnabledChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the OS setting that controls whether clipboard data is set to sync across devices for the current user is changed.
// Register
static event_token RoamingEnabledChanged(EventHandler<IInspectable> const& handler) const;
// Revoke with event_token
static void RoamingEnabledChanged(event_token const* cookie) const;
// Revoke with event_revoker
static Clipboard::RoamingEnabledChanged_revoker RoamingEnabledChanged(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> RoamingEnabledChanged;
function onRoamingEnabledChanged(eventArgs) { /* Your code */ }
Windows.ApplicationModel.DataTransfer.Clipboard.addEventListener("roamingenabledchanged", onRoamingEnabledChanged);
Windows.ApplicationModel.DataTransfer.Clipboard.removeEventListener("roamingenabledchanged", onRoamingEnabledChanged);
- or -
Windows.ApplicationModel.DataTransfer.Clipboard.onroamingenabledchanged = onRoamingEnabledChanged;
Public Shared Custom Event RoamingEnabledChanged As EventHandler(Of Object)
Event Type
Windows requirements
Device family |
Windows 10, version 1809 (introduced in 10.0.17763.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v7.0)
|