SyndicationLink SyndicationLink SyndicationLink SyndicationLink Class

Represents a link within a syndication feed or item. This class encapsulates information in the /rss/channel/link or /rss/channel/item/link element in RSS 2.0 or the atom:link element in Atom 1.0.

Syntax

Declaration

public sealed class SyndicationLinkpublic sealed class SyndicationLinkPublic NotInheritable Class SyndicationLink

Remarks

The following table maps SyndicationLink properties to RSS and Atom feed elements.

SyndicationLinkRSSAtom
Length length (attribute)
MediaType type (attribute)
Relationship rel (attribute)
Title title (attribute)
Uri (node value)href (attribute)
ResourceLanguage hreflang (attribute)

Constructors summary

Creates a new SyndicationLink object.

Creates a new SyndicationLink with a Uri.

Creates a new SyndicationLink object with a Uri, Relationship, Title, MediaType, and Length.

Properties summary

Gets the list of custom attributes of the element.

Gets or sets the base URI for the element. This property represents the xml:base attribute on the element. It may be inherited from an ancestor element.

Gets the list of child elements within the element.

Gets or sets the language of the element. This property represents the xml:lang attribute on the element. It may be inherited from an ancestor element. It must be valid according to XML 1.0.

Gets or sets the length of the linked resource, in bytes.

Gets or sets the media type of the linked resource. The string must have the pattern ".+/.+".

Gets or sets the local name of the element.

Gets or sets the namespace of the element.

Gets or sets the text content of the element. If the element contains only child elements, this property is NULL.

Gets or sets the relationship type of the link.

Gets or sets the language of the resource pointed to by the Uri property. This property represents the hreflang attribute on atom:link. It must adhere to the pattern defined by .

Gets or sets the title of the syndication link.

Gets or sets the URI of the linked resource.

Methods summary

Generates the DOM object that represents this element, all the attributes and child elements including foreign markups. The only formats accepted by this method are Atom 1.0 and RSS 2.0.

Constructors

Properties

Methods

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ActivatableAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.ActivatableAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute

Details

Assembly

Windows.Web.Syndication.dll