Windows Dev Center

SyndicationText class

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.

Syntax


var syndicationText = new Windows.Web.Syndication.SyndicationText(string);
var syndicationText = new Windows.Web.Syndication.SyndicationText(string, syndicationTextType);
var syndicationText = new Windows.Web.Syndication.SyndicationText();

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]

Members

The SyndicationText class has these types of members:

Constructors

The SyndicationText class has these constructors.

ConstructorDescription
SyndicationText() Creates a new SyndicationText object.
SyndicationText(String) Creates a new SyndicationText object with the specified Text property value.
SyndicationText(String, SyndicationTextType) Creates a new SyndicationText object with the specified Text and Type property values.

 

Methods

The SyndicationText class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
GetXmlDocument 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.

 

Properties

The SyndicationText class has these properties.

PropertyAccess typeDescription

AttributeExtensions

Read-onlyGets the list of custom attributes of the element.

BaseUri

Read/writeGets 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

Read-onlyGets the list of child elements within the element.

Language

Read/writeGets 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

Read/writeGets or sets the local name of the element.

NodeNamespace

Read/writeGets or sets the namespace of the element.

NodeValue

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

Text

Read/writeGets the content of a text content construct like atom:title.

Type

Read/writeGets or sets the type of the content.

Xml

Read/writeGets or sets the XML content.

 

Remarks

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

SyndicationTextRSSAtom
Text (node value)(node value)
Type type (attribute)
Xml (xhtml node value)

 

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Web.Syndication
Windows::Web::Syndication [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Web.Syndication
Windows::Web::Syndication [C++]

Metadata

Windows.winmd

See also

Object
ISyndicationText
ISyndicationNode
Quickstart: Accessing a web feed
Syndication sample
AtomPub sample

 

 

Show:
© 2015 Microsoft