Atom10FeedFormatter.ReadItems Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Reads in a collection of SyndicationItem instances from the specified XmlReader.
Namespace: System.ServiceModel.Syndication
Assembly: System.ServiceModel.Syndication (in System.ServiceModel.Syndication.dll)
Syntax
'Declaration
Protected Overridable Function ReadItems ( _
reader As XmlReader, _
feed As SyndicationFeed, _
<OutAttribute> ByRef areAllItemsRead As Boolean _
) As IEnumerable(Of SyndicationItem)
protected virtual IEnumerable<SyndicationItem> ReadItems(
XmlReader reader,
SyndicationFeed feed,
out bool areAllItemsRead
)
Parameters
- reader
Type: System.Xml.XmlReader
The XmlReader to read from.
- feed
Type: System.ServiceModel.Syndication.SyndicationFeed
The SyndicationFeed instance to use to create the SyndicationItem instances.
- areAllItemsRead
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.
Remarks
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.
Version Information
Silverlight
Supported in: 5, 4, 3
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.