Using AIX Store accessor, how do I set a user property on an aix item?

Add-in Express™ Support Service
That's what is more important than anything else

Using AIX Store accessor, how do I set a user property on an aix item?
 
mat3




Posts: 15
Joined: 2010-05-06
I can set the built in properties, but can't find a way to set a user property?
Thanks

Matt
Posted 09 May, 2010 00:03:48 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hello Matt,

You can set or get Extended MAPI properties using their numeric IDs. For example:

mapiItem.SetProperty(0x340F0003, myLongValue); 


Also please have a look at our technical blog.
.NET, Extended MAPI, Windows Phone & RT
Posted 10 May, 2010 03:08:59 Top
mat3




Posts: 15
Joined: 2010-05-06
Eugene,
Thanks for your reply. I read the blog post, but I'm still a little confused.

I have a user defined property called "Foo" that I have set on the folder (so that it can appear in a view) and now I'm trying to set it on a post item. With VSTO, my code looks like:

property = item.ItemProperties.Add("Foo", Outlook.OlUserPropertyType.olText, false); property.Value = "Bar";

how do I do the same using the aixStoreAccessor?
Thanks

Matt
Posted 10 May, 2010 13:59:50 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hello Matt,

property = item.ItemProperties.Add("Foo", Outlook.OlUserPropertyType.olText, false); property.Value = "Bar";


Unfortunately the Mapi Store Accessor doesn't provide such a feature. You need to use the numeric ID of target property.
.NET, Extended MAPI, Windows Phone & RT
Posted 11 May, 2010 03:57:55 Top