共用方式為


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 引進)

適用於