Hi,
I have the following question - how do I get RSS-specific properties of an
RSS item, which I get as a PostItem using the object model? I'm using C#
and
Visual Studio 2008 to create an Outlook 2007 addin.
More specifically, I want to get access to the RSS feed name and the URL
of
the article web page which is accossiated with the RSS item. The object
model does not provide direct access to them, but they are there! I
tracked
them down using MFCMAPI. The tags of these properties are, respectively,
0x842F001E and 0x842B001E. But the following throws an exception:
Outlook.PostItem rssItem = ....;
string articleURL =
rssItem.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x842B001E").ToString();
None of the tags I found which are specific to the RSS feed work. However,
the tag corresponding to the Subject property exposed through the object
model, 0x0037001E, works, so that the following is correct:
Outlook.PostItem rssItem = ....;
string articleSubject =
rssItem.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x0037001E").ToString();
I really want to get direct access from these properties, because they are
there! I don't want to hack some stuff like regex parsing, etc. to guess
them.
Any help is greatly appreciated!
Best,
Iliyan Georgiev


|