ContentLinkInfo Class

Definition

Represents information about a 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
Inheritance
Object Platform::Object IInspectable ContentLinkInfo
Attributes

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Remarks

Important

This API supports content links. The Windows features that enable content links are not available in versions of Windows after Windows 10 version 1903. Content links for XAML text controls will not function in versions of Windows later than version 1903.

Constructors

ContentLinkInfo()

Initializes a new instance of the ContentLinkInfo class.

Properties

DisplayText

Gets or sets the text to display for the link.

Id

Gets or sets the identifier for the content link.

LinkContentKind

Gets or sets a value that indicates what kind of content the link contains.

SecondaryText

Gets or sets additional information about the ContentLink to display to the user.

Uri

Gets or sets the Uniform Resource Identifier (URI) of the app to launch when the link is activated.

Applies to