This documentation is archived and is not being maintained.

Atom10FeedFormatter.ReadItems Method

Reads in a collection of SyndicationItem instances from the specified XmlReader.

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

protected virtual IEnumerable<SyndicationItem> ReadItems(
	XmlReader reader,
	SyndicationFeed feed,
	out bool areAllItemsRead


Type: System.Xml.XmlReader
The XmlReader to read from.
Type: System.ServiceModel.Syndication.SyndicationFeed
The SyndicationFeed instance to use to create the SyndicationItem instances.
Type: System.Boolean%
A value that specifies whether all of the SyndicationItem instances have been read from the XmlReader instance.

Return Value

Type: System.Collections.Generic.IEnumerable<SyndicationItem>
A collection of SyndicationItem instances.

This method does not add the newly created SyndicationItem instances to the SyndicationFeed, because this is done by the caller of the method. This method provides an extensibility point for classes derived from Atom10FeedFormatter to customize how the Atom entries get deserialized. For instance, derived classes could delay the reading of the Atom entry until the caller accesses the entry.

.NET Framework

Supported in: 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.