Clipboard.HistoryEnabledChanged イベント

定義

現在のユーザーに対してクリップボード履歴を有効にするかどうかを制御する OS 設定が変更されたときに発生します。

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

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

// Revoke with event_revoker
static Clipboard::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 の要件

デバイス ファミリ
Windows 10, version 1809 (10.0.17763.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v7.0 で導入)

適用対象