Clipboard.RoamingEnabledChanged 事件

定义

更改控制剪贴板数据是否设置为当前用户的跨设备同步的 OS 设置时发生。

// 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) 

事件类型

Windows 要求

设备系列
Windows 10, version 1809 (在 10.0.17763.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v7.0 中引入)

适用于