Serge UNN
Developer
Posts: 2
Joined: 2010-08-18
|
Hello,
I'm trying to use MAPI Store Accessor for getting Outlook._TaskItem property, and have some problem with it.
I have an method:
public static bool GetMAPIPropertyAsBool(object oMAPIObject, uint uiPropertyTag)
{
var accessor = new AddinExpress.MAPI.ADXMAPIStoreAccessor();
accessor.Initialize(true);
var prop = accessor.GetProperty(oMAPIObject, uiPropertyTag);
accessor.LogOff();
return Boolean.Parse(prop.ToString());
}
And call:
MAPI.GetMAPIPropertyAsBool(oMapiObject, 0x00008109);
It's work perfect for defined properties as ENUM in Accessor, but I need to read TaskDeadOccurrence(ID:0x00008109) property as bool from Outlook._TaskItem.MAPIOBJECT, and it return NULL for me..
I use OutlookSpy for inspecting the item:
[img]http://i912.photobucket.com/albums/ac328/Serge_UNN/Capture.jpg?t=1282139017[/img]
And i have found this property...
How can I read this property? Any ideas?
Thanks for help. |
|
Eugene Astafiev
Guest
|
Hi Serge,
Do you pass an instance of the TaskItem class to the GetProperty function (not a MAPIOBJECT)?
Please note that the mentioned property may have different numeric ID on another PC (aka named property). |
|
Serge UNN
Developer
Posts: 2
Joined: 2010-08-18
|
Hello Eugene,
Yes, i have passed TaskItem object from
OutlookRoutine.Instance.MapiItemsHandler.ProcessCurrentInspectorItem(...)
also tried to pass item from
var accessor = new AddinExpress.MAPI.ADXMAPIStoreAccessor();
accessor.Initialize(true);
var item = accessor.GetMapiItem(oMAPIObject) //oMAPIObject is Outlook._TaskItem
but had the same no result..
I have read web.mailana.com/exchangedocs/[MS-OXOTASK].pdf and used id from there.. with no result.
- "Please note that the mentioned property may have different numeric ID on another PC (aka named property)."
so, i need to somehow get ID of "TaskDeadOccurrence" property and then try to get it value? Have you tried to do this in .NET managed code? any suggestions?
Thanks, Serhiy. |
|
Eugene Astafiev
Guest
|
|