SyndicationContent SyndicationContent SyndicationContent SyndicationContent Class

Definition

Represents feed content including Text, HTML, XHTML, URL, and XML. This object encapsulates the atom:content element in Atom 1.0 and can contain a link to external content.

public sealed class SyndicationContentpublic sealed class SyndicationContentPublic NotInheritable Class SyndicationContentpublic sealed class SyndicationContent
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 SyndicationContent properties to RSS and Atom feed elements.

SyndicationContentRSSAtom
SourceUri src (attribute)
Text (node value)(node value)
Type type (attribute)
Xml (xhtml node value)

Constructors

SyndicationContent() SyndicationContent() SyndicationContent() SyndicationContent()

Creates a new SyndicationContent object.

public SyndicationContent()public New()Public Sub New()public SyndicationContent()
Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

SyndicationContent(String, SyndicationTextType) SyndicationContent(String, SyndicationTextType) SyndicationContent(String, SyndicationTextType) SyndicationContent(String, SyndicationTextType)

Creates a new SyndicationContent object with the specified Text and Type property values.

public SyndicationContent(String text, SyndicationTextType type)public New(String text, SyndicationTextType type)Public Sub New(text As String, type As SyndicationTextType)public SyndicationContent(String text, SyndicationTextType type)
Parameters
text
System.String System.String System.String System.String

The text of the content.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

SyndicationContent(Uri) SyndicationContent(Uri) SyndicationContent(Uri) SyndicationContent(Uri)

Creates a new SyndicationContent object with the specified Uri property value.

public SyndicationContent(Uri sourceUri)public New(Uri sourceUri)Public Sub New(sourceUri As Uri)public SyndicationContent(Uri sourceUri)
Parameters
sourceUri
Uri Uri Uri Uri

The Uri value.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

AttributeExtensions AttributeExtensions AttributeExtensions AttributeExtensions

Gets the list of custom attributes of the element.

public IVector<SyndicationAttribute> AttributeExtensions { get; }public IVector<SyndicationAttribute> AttributeExtensions { get; }Public ReadOnly Property AttributeExtensions As IVector<SyndicationAttribute>public IVector<SyndicationAttribute> AttributeExtensions { get; }
Value

A list of attributes of the element.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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 Uripublic Uri BaseUri { get; set; }
Value
Uri Uri Uri Uri

The xml:base attribute on the element.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

ElementExtensions ElementExtensions ElementExtensions ElementExtensions

Gets the list of child elements within the element.

public IVector<ISyndicationNode> ElementExtensions { get; }public IVector<ISyndicationNode> ElementExtensions { get; }Public ReadOnly Property ElementExtensions As IVector<ISyndicationNode>public IVector<ISyndicationNode> ElementExtensions { get; }
Value

The list of child elements within the element.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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 string Language { get; set; }public string Language { get; set; }Public ReadWrite Property Language As stringpublic string Language { get; set; }
Value
string string string string

The xml:lang attribute on the element.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

NodeName NodeName NodeName NodeName

Gets or sets the local name of the element.

public string NodeName { get; set; }public string NodeName { get; set; }Public ReadWrite Property NodeName As stringpublic string NodeName { get; set; }
Value
string string string string

The local name of the element. Must be valid according to XML 1.0.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

NodeNamespace NodeNamespace NodeNamespace NodeNamespace

Gets or sets the namespace of the element.

public string NodeNamespace { get; set; }public string NodeNamespace { get; set; }Public ReadWrite Property NodeNamespace As stringpublic string NodeNamespace { get; set; }
Value
string string string string

The namespace of the element.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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 string NodeValue { get; set; }public string NodeValue { get; set; }Public ReadWrite Property NodeValue As stringpublic string NodeValue { get; set; }
Value
string string string string

The text content of the element.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

SourceUri SourceUri SourceUri SourceUri

Gets or sets the URI to the content. This property represents the src attribute on atom:content.

public Uri SourceUri { get; set; }public Uri SourceUri { get; set; }Public ReadWrite Property SourceUri As Uripublic Uri SourceUri { get; set; }
Value
Uri Uri Uri Uri

The src attribute on atom:content.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Text Text Text Text

Gets the syndication content.

public string Text { get; set; }public string Text { get; set; }Public ReadWrite Property Text As stringpublic string Text { get; set; }
Value
string string string string

The text of the syndication content.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Type Type Type Type

Gets or sets the type of the content.

public string Type { get; set; }public string Type { get; set; }Public ReadWrite Property Type As stringpublic string Type { get; set; }
Value
string string string string

This value can be "text", "html", "xhtml" or other media types.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Xml Xml Xml Xml

Gets or sets the XML content.

public XmlDocument Xml { get; set; }public XmlDocument Xml { get; set; }Public ReadWrite Property Xml As XmlDocumentpublic XmlDocument Xml { get; set; }
Value
XmlDocument XmlDocument XmlDocument XmlDocument

The XML content within the atom:content element.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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 XmlDocumentpublic XmlDocument GetXmlDocument(SyndicationFormat format)
Parameters
Returns

The DOM object that represents this element, and all the attributes and child elements, including foreign markups.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)