SyndicationFeed-Klasse

SyndicationFeed Class

Enthält Informationen zu einem Feed. Diese Klasse kapselt Informationen des /rss/channel-Elements in RSS 2.0 oder des atom:feed-Elements in Atom 1.0.

Syntax


var syndicationFeed = new Windows.Web.Syndication.SyndicationFeed(string, string, uri);
var syndicationFeed = new Windows.Web.Syndication.SyndicationFeed();

Attribute

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

Member

SyndicationFeedKlasse hat diese Membertypen:

Konstruktoren

SyndicationFeedKlasse hat diese Konstruktoren.

KonstruktorBeschreibung
SyndicationFeed() Creates a new SyndicationFeed object.
SyndicationFeed(String, String, Uri) Creates a new SyndicationFeed object with a Title, Subtitle, and Uri.

 

Methoden

The SyndicationFeed Klasse hat diese Methoden. Mit C#, Visual Basic und C++ erbt es auch Methoden aus Object Klasse.

MethodeBeschreibung
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.
Load Initializes the object from the given feed string, which can be in either RSS 2.0 or Atom 1.0 format.
LoadFromXml Initializes the SyndicationFeed object from the given DOM object, which can contain XML content in either RSS 2.0 or Atom 1.0 format.

 

Eigenschaften

Der SyndicationFeedKlasse hat diese Eigenschaften.

EigenschaftZugriffstypBeschreibung

AttributeExtensions

SchreibgeschütztGets the list of custom attributes of the element.

Authors

SchreibgeschütztGets the authors of an item. This property represents the collection of all the atom:author elements under atom:entry.

BaseUri

Lese-/SchreibzugriffGets 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.

Categories

SchreibgeschütztGets a collection of categories of the feed. This property represents the collection of all the atom:category elements under atom:feed.

Contributors

SchreibgeschütztGets a collection of the contributors of the feed. This property represents the collection of all the atom:contributor elements under atom:feed.

ElementExtensions

SchreibgeschütztGets the list of child elements within the element.

FirstUri

SchreibgeschütztGets the first Uniform Resource Identifier (URI) in a sequence. This property represents the atom:link element with attribute rel=”first”.

Generator

Lese-/SchreibzugriffGets or sets the generator of the feed. This property represents the atom:generator element or the generator element in RSS 2.0.

IconUri

Lese-/SchreibzugriffGets or sets the Uniform Resource Identifier (URI) for the image for the feed. This property represents the atom:icon element.

Id

Lese-/SchreibzugriffGets or sets the identifier for the syndication feed.

ImageUri

Lese-/SchreibzugriffGets or sets the Uniform Resource Identifier (URI) of the logo for the feed. This property represents the atom:logo element or image/uri element in RSS 2.0.

Items

SchreibgeschütztGets the collection of items in the feed. This property represents the collection of atom:entry elements or a collection of item elements in RSS 2.0.

Language

Lese-/SchreibzugriffGets 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.

LastUpdatedTime

Lese-/SchreibzugriffGets or sets the time the feed was last modified. This property represents the /rss/channel/lastBuildDate or atom:updated element.

LastUri

SchreibgeschütztGets the last Uniform Resource Identifier (URI) in the sequence. This property represents the atom:link element with attribute rel=”last”.

Links

SchreibgeschütztGets the links associated with the feed. This property represents a collection of the atom:link elements under atom:feed. In RSS 2.0, this maps to the link element.

NextUri

SchreibgeschütztGets the next Uniform Resource Identifier (URI) in the sequence. This property represents the atom:link element with attribute rel="next".

NodeName

Lese-/SchreibzugriffGets or sets the local name of the element.

NodeNamespace

Lese-/SchreibzugriffGets or sets the namespace of the element.

NodeValue

Lese-/SchreibzugriffGets or sets the text content of the element. If the element contains only child elements, this property is NULL.

PreviousUri

SchreibgeschütztGets the previous Uniform Resource Identifier (URI) in the sequence. This property represents the atom:link element with attribute rel="previous".

Rights

Lese-/SchreibzugriffGets or sets information about the rights for the feed. This property represents the atom:rights element or the copyright element in RSS 2.0.

SourceFormat

SchreibgeschütztGets the format of the source document. If the object is not loaded from a document, this property will return SyndicationFormat_Atom10.

Subtitle

Lese-/SchreibzugriffGets or sets the subtitle of the feed. This property represents the atom:subtitle element or the description element in RSS 2.0.

Title

Lese-/SchreibzugriffGets or sets the title of the syndication feed.

 

Hinweise

In der folgenden Tabelle sind SyndicationFeed-Eigenschaften den RSS-Feed- und Atom-Feed-Elementen gegenübergestellt.

SyndicationFeedRSS-ChannelAtom-Feed
Authors managingEditorAutor
Categories categorycategory
Contributors Mitwirkender
Generator GeneratorGenerator
IconUri Symbol
Id id
LastUpdatedTime lastBuildDateaktualisiert
Rights CopyrightRechte
Subtitle descriptionUntertitel
Title TitelTitel
Items Elemententry
Links linklink
ImageUri imageLogo
FirstUri verknüpfen mit rel="first"
LastUri verknüpfen mit rel="last"
NextUri verknüpfen mit rel="next"
PreviousUri verknüpfen mit rel="previous"
SourceFormat

 

Anforderungen

Mindestens unterstützter Client

Windows 8 [Windows Store-Apps, Desktop-Apps]

Mindestens unterstützter Server

Windows Server 2012 [Windows Store-Apps, Desktop-Apps]

Namespace

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

Metadaten

Windows.winmd

Siehe auch

Schnellstart: Zugreifen auf einen Webfeed
Syndication-Beispiel
AtomPub-Beispiel

 

 

Anzeigen:
© 2017 Microsoft