SyndicationContent 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 SyndicationContent : ISyndicationContent, ISyndicationNode, ISyndicationText
struct winrt::Windows::Web::Syndication::SyndicationContent : ISyndicationContent, ISyndicationNode, ISyndicationText
public sealed class SyndicationContent : ISyndicationContent, ISyndicationNode, ISyndicationText
Public NotInheritable Class SyndicationContent Implements ISyndicationContent, ISyndicationNode, ISyndicationText
var syndicationContent = new 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() SyndicationContent()

Creates a new SyndicationContent object.

SyndicationContent(String, SyndicationTextType) 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.

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

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

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.

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.

SourceUri SourceUri SourceUri SourceUri SourceUri

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

Text Text Text Text Text

Gets the syndication content.

Type Type Type Type Type

Gets or sets the type of the content.

Xml Xml Xml Xml Xml

Gets or sets the XML content.

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