SyndicationText Class

Definition

Implements the ISyndicationText interface that encapsulates elements in RSS 2.0 or Atom 1.0 that can have either text, HTML, or XHTML. In Atom 1.0, this object maps to an atomTextConstruct in the schema, which can be atom:title, atom:subtitle, atom:rights, or atom:summary elements.

C#
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Syndication.ISyndicationTextFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SyndicationText : ISyndicationText
C#
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Syndication.ISyndicationTextFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class SyndicationText : ISyndicationText
Inheritance
Object SyndicationText
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

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

SyndicationText RSS Atom
Text (node value) (node value)
Type --- type (attribute)
Xml --- (xhtml node value)

Constructors

SyndicationText()

Creates a new SyndicationText object.

SyndicationText(String, SyndicationTextType)

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

SyndicationText(String)

Creates a new SyndicationText object with the specified Text property value.

Properties

AttributeExtensions

Gets the list of custom attributes of the element.

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

Gets the list of child elements within the element.

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

Gets or sets the local name of the element.

NodeNamespace

Gets or sets the namespace of the element.

NodeValue

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

Text

Gets the content of a text content construct like atom:title.

Type

Gets or sets the type of the content.

Xml

Gets or sets the XML content.

Methods

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.

Applies to

Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

See also