Reputation: 12194
I have successfully generated an RSS using SyndicationItem and SyndicationFeed
var item = new SyndicationItem
(
title: Title,
content: Subtitle,
itemAlternateLink: new Uri("http://mysite/" + Id)
);
item.PublishDate = Convert.ToDateTime(Dt).ToUniversalTime();
item.Summary = new TextSyndicationContent(Subtitle);
items.Add(item);
I generate the feed with:
SyndicationFeed feed = new SyndicationFeed("RSS feed", "http://mysite/Rss", Request.Url, items);
I would like to add an image to the RSS header, how can I do it?
Upvotes: 0
Views: 514
Reputation: 1038770
You could use the ImageUrl property on the SyndicationFeed instance:
feed.ImageUrl = new Uri("http://www.google.com");
Upvotes: 1