Share via


Clipboard.RoamingEnabledChanged Événement

Définition

Se produit lorsque le paramètre du système d’exploitation qui contrôle si les données du Presse-papiers sont définies pour être synchronisées entre les appareils pour l’utilisateur actuel est modifié.

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

Type d'événement

Configuration requise pour Windows

Famille d’appareils
Windows 10, version 1809 (introduit dans 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v7.0)

S’applique à