UserDeviceAssociation.UserDeviceAssociationChanged Événement
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Se déclenche lorsque l’utilisateur associé à un appareil change.
// Register
static event_token UserDeviceAssociationChanged(EventHandler<UserDeviceAssociationChangedEventArgs> const& handler) const;
// Revoke with event_token
static void UserDeviceAssociationChanged(event_token const* cookie) const;
// Revoke with event_revoker
static UserDeviceAssociation::UserDeviceAssociationChanged_revoker UserDeviceAssociationChanged(auto_revoke_t, EventHandler<UserDeviceAssociationChangedEventArgs> const& handler) const;
public static event System.EventHandler<UserDeviceAssociationChangedEventArgs> UserDeviceAssociationChanged;
function onUserDeviceAssociationChanged(eventArgs) { /* Your code */ }
Windows.System.UserDeviceAssociation.addEventListener("userdeviceassociationchanged", onUserDeviceAssociationChanged);
Windows.System.UserDeviceAssociation.removeEventListener("userdeviceassociationchanged", onUserDeviceAssociationChanged);
- or -
Windows.System.UserDeviceAssociation.onuserdeviceassociationchanged = onUserDeviceAssociationChanged;
Public Shared Custom Event UserDeviceAssociationChanged As EventHandler(Of UserDeviceAssociationChangedEventArgs)