ContentLink.Invoked 事件

定義

發生于使用者互動啟動連結時。

// Register
event_token Invoked(TypedEventHandler<ContentLink, ContentLinkInvokedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
ContentLink::Invoked_revoker Invoked(auto_revoke_t, TypedEventHandler<ContentLink, ContentLinkInvokedEventArgs const&> const& handler) const;
public event TypedEventHandler<ContentLink,ContentLinkInvokedEventArgs> Invoked;
function onInvoked(eventArgs) { /* Your code */ }
contentLink.addEventListener("invoked", onInvoked);
contentLink.removeEventListener("invoked", onInvoked);
- or -
contentLink.oninvoked = onInvoked;
Public Custom Event Invoked As TypedEventHandler(Of ContentLink, ContentLinkInvokedEventArgs) 

事件類型

備註

重要

此 API 支援內容連結。 Windows 10 版本 1903 之後的 Windows 版本中不提供啟用內容連結的 Windows 功能。 XAML 文字控制項的內容連結在版本 1903 之後將無法運作。

適用於