从 SyndicateContent 读取内容文本
您好,我正在尝试将提要项目中的内容读入字符串。
SyndicationFeed feed = SyndicationFeed.Load(feedReader);
SydicationContent itemContent = feed.Items.ToList<SyndicationItem>()[0].Content;
string retrivedContent = itemContent .......???
如何从 itemContent 中读取文本?
该文档显示了如何创建 TextSyndicateContent
TextSyndicationContent textContent = new TextSyndicationContent("Some text content");
SyndicationItem item = new SyndicationItem("Item Title", textContent, new Uri("server/items";), "ItemID", DateTime.Now);
有什么方法可以逆转这个问题吗?
谢谢
Hi i am trying to read the content into string from feed items.
SyndicationFeed feed = SyndicationFeed.Load(feedReader);
SydicationContent itemContent = feed.Items.ToList<SyndicationItem>()[0].Content;
string retrivedContent = itemContent .......???
how can I read the text from the itemContent ?
The documentation shows how to create TextSyndicationContent
TextSyndicationContent textContent = new TextSyndicationContent("Some text content");
SyndicationItem item = new SyndicationItem("Item Title", textContent, new Uri("server/items";), "ItemID", DateTime.Now);
Any way to reverse this ?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以查看 SyndicateFeed 或位于SyndicateContent。
You could take a look at SyndicationFeed or at SyndicationContent.