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, ISyndicationNodepublic sealed class SyndicationLink : ISyndicationLink, ISyndicationNodePublic NotInheritable Class SyndicationLink Implements ISyndicationLink, ISyndicationNode// You can use this class in JavaScript.
- Attributes
| 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.
| SyndicationLink | RSS | Atom |
|---|---|---|
| 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()
Creates a new SyndicationLink object.
public : SyndicationLink()public SyndicationLink()Public Sub New()// You can use this method in JavaScript.
SyndicationLink(Uri) SyndicationLink(Uri) SyndicationLink(Uri) SyndicationLink(Uri)
Creates a new SyndicationLink with a Uri.
public : SyndicationLink(Uri uri)public SyndicationLink(Uri uri)Public Sub New(uri As Uri)// You can use this method in JavaScript.
- See Also
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.
public : SyndicationLink(Uri uri, PlatForm::String relationship, PlatForm::String title, PlatForm::String mediaType, unsigned int length)public SyndicationLink(Uri uri, String relationship, String title, String mediaType, UInt32 length)Public Sub New(uri As Uri, relationship As String, title As String, mediaType As String, length As UInt32)// You can use this method in JavaScript.
- relationship
- PlatForm::String String String String
The relationship type.
- title
- PlatForm::String String String String
The title of the syndication link.
- mediaType
- PlatForm::String String String String
The MediaType of the syndication link.
- length
- unsigned int UInt32 UInt32 UInt32
The length, in bytes, of the syndication link.
- See Also
Properties
AttributeExtensions AttributeExtensions AttributeExtensions AttributeExtensions
Gets the list of custom attributes of the element.
public : IVector<SyndicationAttribute> AttributeExtensions { get; }public IList<SyndicationAttribute> AttributeExtensions { get; }Public ReadOnly Property AttributeExtensions As IList<SyndicationAttribute>// You can use this property in JavaScript.
- Value
- IVector<SyndicationAttribute> IList<SyndicationAttribute> IList<SyndicationAttribute> IList<SyndicationAttribute>
A list of attributes of the element.
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.
public : Uri BaseUri { get; set; }public Uri BaseUri { get; set; }Public ReadWrite Property BaseUri As Uri// You can use this property in JavaScript.
- Value
- Uri Uri Uri Uri
The xml:base attribute on the element.
ElementExtensions ElementExtensions ElementExtensions ElementExtensions
Gets the list of child elements within the element.
public : IVector<ISyndicationNode> ElementExtensions { get; }public IList<ISyndicationNode> ElementExtensions { get; }Public ReadOnly Property ElementExtensions As IList<ISyndicationNode>// You can use this property in JavaScript.
- Value
- IVector<ISyndicationNode> IList<ISyndicationNode> IList<ISyndicationNode> IList<ISyndicationNode>
The list of child elements within the element.
Remarks
The following elements in the RSS 2.0 documents do not have public accessors;they can be accessed by searching the ElementExtensions collection on the SyndicationFeed object:
- /rss/channel/docs
- /rss/channel/cloud
- /rss/channel/pubDate
- /rss/channel/webmaster
- /rss/channel/ttl
- /rss/channel/rating
- /rss/channel/textInput
- /rss/channel/skipDays
- /rss/channel/skipHours
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.
public : PlatForm::String Language { get; set; }public string Language { get; set; }Public ReadWrite Property Language As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The xml:lang attribute on the element.
Length Length Length Length
Gets or sets the length of the linked resource, in bytes.
public : unsigned int Length { get; set; }public uint Length { get; set; }Public ReadWrite Property Length As uint// You can use this property in JavaScript.
- Value
- unsigned int uint uint uint
The length attribute on atom:length.
MediaType MediaType MediaType MediaType
Gets or sets the media type of the linked resource. The string must have the pattern ".+/.+".
public : PlatForm::String MediaType { get; set; }public string MediaType { get; set; }Public ReadWrite Property MediaType As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The type attribute on atom:link.
NodeName NodeName NodeName NodeName
Gets or sets the local name of the element.
public : PlatForm::String NodeName { get; set; }public string NodeName { get; set; }Public ReadWrite Property NodeName As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The local name of the element. Must be valid according to XML 1.0.
NodeNamespace NodeNamespace NodeNamespace NodeNamespace
Gets or sets the namespace of the element.
public : PlatForm::String NodeNamespace { get; set; }public string NodeNamespace { get; set; }Public ReadWrite Property NodeNamespace As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The namespace of the element.
NodeValue NodeValue NodeValue NodeValue
Gets or sets the text content of the element. If the element contains only child elements, this property is NULL.
public : PlatForm::String NodeValue { get; set; }public string NodeValue { get; set; }Public ReadWrite Property NodeValue As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The text content of the element.
Relationship Relationship Relationship Relationship
Gets or sets the relationship type of the link.
public : PlatForm::String Relationship { get; set; }public string Relationship { get; set; }Public ReadWrite Property Relationship As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The rel attribute on atom:link.
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 .
public : PlatForm::String ResourceLanguage { get; set; }public string ResourceLanguage { get; set; }Public ReadWrite Property ResourceLanguage As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The language of the resource.
Title Title Title Title
Gets or sets the title of the syndication link.
public : PlatForm::String Title { get; set; }public string Title { get; set; }Public ReadWrite Property Title As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The atom:title element.
Methods
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.
public : XmlDocument GetXmlDocument(SyndicationFormat format)public XmlDocument GetXmlDocument(SyndicationFormat format)Public Function GetXmlDocument(format As SyndicationFormat) As XmlDocument// You can use this method in JavaScript.
The format of the data.
The DOM object that represents this element, and all the attributes and child elements, including foreign markups.