Share via


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 功能。 在高于 1903 版本的 Windows 版本中,XAML 文本控件的内容链接将无法正常运行。

适用于