SyndicationGenerator class

Applies to Windows and Windows Phone

Describes the agent or the tool used to generate the feed. This class encapsulates information in the /rss/channel/generator element in RSS 2.0 or the /atom:feed/atom:generator element in Atom 1.0.

Syntax


var syndicationGenerator = new Windows.Web.Syndication.SyndicationGenerator(string);
var syndicationGenerator = new Windows.Web.Syndication.SyndicationGenerator();

Attributes

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

Members

The SyndicationGenerator class has these types of members:

Constructors

The SyndicationGenerator class has these constructors.

ConstructorDescription
SyndicationGenerator() Creates a new SyndicationGenerator object.
SyndicationGenerator(String) Creates a new SyndicationGenerator object with the specified Text property value.

 

Methods

The SyndicationGenerator 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 SyndicationGenerator 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 or sets the text that identifies the generator.

Uri

Read/writeGets or sets the Uniform Resource Identifier (URI) of the syndication generator.

Version

Read/writeGets or sets the version of the generator.

 

Remarks

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

SyndicationGeneratorRSSAtom
Text (node value)(node value)
Uri uri (attribute)
Version version (attribute)

 

Requirements

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

Quickstart: Accessing a web feed
Syndication sample

 

 

Show:
© 2014 Microsoft