嗨,我正在尝试从Feed项中读取内容到字符串.
SyndicationFeed Feed = SyndicationFeed.Load(FeedReader); SydicationContent itemContent = Feed.Items.ToList<SyndicationItem>()[0].Content; string retrivedContent = itemContent .......???
如何从itemContent中读取文本?
该文档显示了如何创建TextSyndicationContent
TextSyndicationContent textContent = new TextSyndicationContent("Some text content"); SyndicationItem item = new SyndicationItem("Item Title",textContent,new Uri("server/items";),"ItemID",DateTime.Now);
有什么方法可以扭转这种局
谢谢
解决方法
您可以查看
SyndicationFeed或
SyndicationContent.