The Moth

Developer, Former MVP

About

Blog Home

About me

Email
Me

Comments

Disclaimer

Best of
2004

Best of
2005

Subscribe

Syndicate

SUB
Bloglines

NewsGator
online

Add
to My Yahoo!

Add
to My MSN

MSN
Alerts

Feedster

Subscribe
in Rojo

Add
to Newsburst

Pluck

My
AOL

netvibes

Google

Pageflakes

Furl

del.icio.us

Subscribe via email:

Archives

July
2004

August
2004

September
2004

October
2004

November
2004

December
2004

January
2005

February
2005

March
2005

April
2005

May
2005

June
2005

July
2005

August
2005

September
2005

October
2005

November
2005

December
2005

January
2006

February
2006

March
2006

April
2006

May
2006

June
2006

July
2006

August
2006

On this page
msfeeds.dll

Friday, August 04, 2006

msfeeds.dll

If you followed the links from my Windows
RSS Platform blog entry, you will have found the infamous example of using
the RSS API to create a screensaver.
In that same MSDN area from the treeview on the left you can find the RSS object
model reference. The RSS API allows browsing the feed hierarchy,
add/edit/delete the hierarchy, listening for events to changes in the hierarchy
and controlling the process of synching/downloading.

Please see my blog
post with a short example of utilising managed code for using the RSS
API (skip to the code section and keep it in mind while reading the
following).

What I want to do here is provide some tips for when you
start using the RSS API.
1. It is a COM dll, so locate and reference
msfeeds.dll (Microsoft Feeds, version 1.0) from the COM tab in the Visual Studio
references dialog
2. This will bring in Microsoft.Feeds.Interop which is also
the namespace you use from code
3. Everything starts with the FeedsManager
and his RootFolder property (there is always a implicit root folder).
4. The
object hierarchy is
RootFolder->Subfolder->subfolder->feed->feeditem->feedenclosure
5.
Most class/interface members return an object typed as System.Object. That means
you have to do some casting in your code e.g. the Feeds and Subfolders
properties in my
example have to be cast to IFeedsEnum.

To help you navigate the RSS
API, in addition to the links and descriptions above, check out the 4 class
diagrams I laid out (collectively, the depict the entire
API):
FeedManager , Folder and Feed
, Item and
Enclosure , Events

# posted by
The Moth @ 14:27

<< Home
Copyright ©
Daniel Moth