-api-id | -api-type |
---|---|
T:Windows.Web.Syndication.SyndicationClient |
winrt class |
Implements the ISyndicationClient interface which retrieves feeds from a URI asynchronously.
The following code demonstrates how to retrieve a feed using RetrieveFeedAsync.
using Windows.Foundation;
using Windows.Web.Syndication;
async Task GetFeedAsync(string feedUri)
{
var uri = new Uri(feedUri);
var client = new SyndicationClient(){ BypassCacheOnRetrieve = true };
currentFeed = await client.RetrieveFeedAsync(uri);
}
For additional examples that demonstrate how this class is used to retrieve syndicated content from the web, see Quickstart: Accessing a web feed.
Quickstart: Accessing a web feed, Syndication sample, Syndication sample (Windows 10), RssReader sample