SyndicationLink SyndicationLink SyndicationLink SyndicationLink SyndicationLink Class

Definition

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.

public : sealed class SyndicationLink : ISyndicationLink, ISyndicationNode
struct winrt::Windows::Web::Syndication::SyndicationLink : ISyndicationLink, ISyndicationNode
public sealed class SyndicationLink : ISyndicationLink, ISyndicationNode
Public NotInheritable Class SyndicationLink Implements ISyndicationLink, ISyndicationNode
var syndicationLink = new syndicationLink();
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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

SyndicationLink() SyndicationLink() SyndicationLink() SyndicationLink() SyndicationLink()

Creates a new SyndicationLink object.

SyndicationLink(Uri) SyndicationLink(Uri) SyndicationLink(Uri) SyndicationLink(Uri) SyndicationLink(Uri)

Creates a new SyndicationLink with a Uri.

SyndicationLink(Uri, String, String, String, UInt32) SyndicationLink(Uri, String, String, String, UInt32) SyndicationLink(Uri, String, String, String, UInt32) SyndicationLink(Uri, String, String, String, UInt32) SyndicationLink(Uri, String, String, String, UInt32)

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

Properties

AttributeExtensions AttributeExtensions AttributeExtensions AttributeExtensions AttributeExtensions

Gets the list of custom attributes of the element.

BaseUri BaseUri BaseUri BaseUri BaseUri

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.

ElementExtensions ElementExtensions ElementExtensions ElementExtensions ElementExtensions

Gets the list of child elements within the element.

Language Language Language Language Language

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.

Length Length Length Length Length

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

MediaType MediaType MediaType MediaType MediaType

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

NodeName NodeName NodeName NodeName NodeName

Gets or sets the local name of the element.

NodeNamespace NodeNamespace NodeNamespace NodeNamespace NodeNamespace

Gets or sets the namespace of the element.

NodeValue NodeValue NodeValue NodeValue NodeValue

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

Relationship Relationship Relationship Relationship Relationship

Gets or sets the relationship type of the link.

ResourceLanguage ResourceLanguage ResourceLanguage ResourceLanguage ResourceLanguage

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 .

Title Title Title Title Title

Gets or sets the title of the syndication link.

Uri Uri Uri Uri Uri

Gets or sets the URI of the linked resource.

Methods

GetXmlDocument(SyndicationFormat) GetXmlDocument(SyndicationFormat) GetXmlDocument(SyndicationFormat) GetXmlDocument(SyndicationFormat) GetXmlDocument(SyndicationFormat)

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.

See Also