View Single Post
  #2  
Old April 21st 09, 09:05 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP][_3_]
external usenet poster
 
Posts: 465
Default What is the recommendet way to read/write a user defined Field (Named Property) in the MailItem Object using VSTO?

You should be able to use ItemProperties.Item("UID") or
UserProperties.Item("UID").

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Michael Schmitz" wrote in message
...
Hello NG,

I am very new to Outlook2007 and VSTO (Visual Studio 2008)

in a mail i have a user defined Named Property "UID"

the DASL is
http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/UID
(I used outlookspy to get this)

At the moment I'am looping through all ItemProperties and search for
a Property with the Name "UID" to read/write to that property.

Is their a better way to directly access such a user defined property?



Ads