ContentLinkInfo 类

定义

表示有关 ContentLink 的信息。

public ref class ContentLinkInfo sealed
/// [Windows.Foundation.Metadata.Activatable(393216, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ContentLinkInfo final
[Windows.Foundation.Metadata.Activatable(393216, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ContentLinkInfo
function ContentLinkInfo()
Public NotInheritable Class ContentLinkInfo
继承
Object Platform::Object IInspectable ContentLinkInfo
属性

Windows 要求

要求 说明
设备系列
Windows 10, version 1803 (在 10.0.17134.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v6.0 中引入)

注解

重要

此 API 支持内容链接。 高于 Windows 10 版本 1903 的 Windows 版本中不提供启用内容链接的 Windows 功能。 在高于 1903 版本的 Windows 版本中,XAML 文本控件的内容链接将无法正常运行。

构造函数

名称 说明
ContentLinkInfo()

初始化 ContentLinkInfo 类的新实例。

属性

名称 说明
DisplayText

获取或设置要为链接显示的文本。

Id

获取或设置内容链接的标识符。

LinkContentKind

获取或设置一个值,该值指示链接包含的内容类型。

SecondaryText

获取或设置要向用户显示的 ContentLink 的其他信息。

Uri

获取或设置在激活链接时要启动的应用的统一资源标识符 (URI) 。

适用于