Rss20FeedFormatter.ReadItems(XmlReader, SyndicationFeed, Boolean) 方法

定义

从指定的 SyndicationItem 读入 XmlReader 实例的集合。

protected:
 virtual System::Collections::Generic::IEnumerable<System::ServiceModel::Syndication::SyndicationItem ^> ^ ReadItems(System::Xml::XmlReader ^ reader, System::ServiceModel::Syndication::SyndicationFeed ^ feed, [Runtime::InteropServices::Out] bool % areAllItemsRead);
protected virtual System.Collections.Generic.IEnumerable<System.ServiceModel.Syndication.SyndicationItem> ReadItems (System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationFeed feed, out bool areAllItemsRead);
abstract member ReadItems : System.Xml.XmlReader * System.ServiceModel.Syndication.SyndicationFeed * bool -> seq<System.ServiceModel.Syndication.SyndicationItem>
override this.ReadItems : System.Xml.XmlReader * System.ServiceModel.Syndication.SyndicationFeed * bool -> seq<System.ServiceModel.Syndication.SyndicationItem>
Protected Overridable Function ReadItems (reader As XmlReader, feed As SyndicationFeed, ByRef areAllItemsRead As Boolean) As IEnumerable(Of SyndicationItem)

参数

reader
XmlReader

要从其中进行读取的 XmlReader

feed
SyndicationFeed

要用于创建 SyndicationFeed 实例的 SyndicationItem 实例。

areAllItemsRead
Boolean

一个指定是否已从 SyndicationItem 实例读取所有 XmlReader 实例的值。

返回

IEnumerable<SyndicationItem>

SyndicationItem 实例的集合。

注解

新创建的 SyndicationItem 实例未添加到与 SyndicationFeed 实例关联的 Rss20FeedFormatter

适用于