Clipboard.HistoryEnabledChanged Event

Definition

Occurs when the OS setting that controls whether clipboard history is enabled for the current user is changed.

// Register
event_token HistoryEnabledChanged(EventHandler<IInspectable> const& handler) const;

// Revoke with event_token
void HistoryEnabledChanged(event_token const* cookie) const;

// Revoke with event_revoker
HistoryEnabledChanged_revoker HistoryEnabledChanged(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> HistoryEnabledChanged;
function onHistoryEnabledChanged(eventArgs) { /* Your code */ }
Windows.ApplicationModel.DataTransfer.Clipboard.addEventListener("historyenabledchanged", onHistoryEnabledChanged);
Windows.ApplicationModel.DataTransfer.Clipboard.removeEventListener("historyenabledchanged", onHistoryEnabledChanged);
- or -
Windows.ApplicationModel.DataTransfer.Clipboard.onhistoryenabledchanged = onHistoryEnabledChanged;
Public Shared Custom Event HistoryEnabledChanged As EventHandler(Of Object) 

Windows 10 requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Applies to