SyndicationFeed.Load Method (XmlReader)

 

Loads a syndication feed from the specified XML reader.

Namespace:   System.ServiceModel.Syndication
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public static SyndicationFeed Load(
	XmlReader reader
)

Parameters

reader
Type: System.Xml.XmlReader

The XmlReader to load the feed from.

Return Value

Type: System.ServiceModel.Syndication.SyndicationFeed

A SyndicationFeed that contains the loaded contents.

The following example demonstrates how to call this method.

XmlReader reader = XmlReader.Create("http://localhost/feeds/serializedFeed.xml");
SyndicationFeed feed = SyndicationFeed.Load(reader);

.NET Framework
Available since 3.5
Silverlight
Available since 2.0
Return to top
Show: