![]() |
RDO: using TypeOf to determine [OOM] Class
I've been using this successfully to determine whether an item object is a
contact, task or appointment, but I have a related problem: Since all item types derive from RDOMail, how do I determine that an item is an email message? (MessageClass = "IPM.Note" by default.) At the moment I'm testing for all of the RDOMail-derived types, and assuming that if it isn't any of them, it's an email... (I want to remove all dependency on the MessageClass string for this level of test.) Is there a more efficient way to do this? TIA, MM |
using TypeOf to determine [OOM] Class
That is as good as it gets... If the items is not one of the sepcial items
(such as RDOAppointmentItem), treat it as a generic RDOMail. object. -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "Mark McGinty" wrote in message ... I've been using this successfully to determine whether an item object is a contact, task or appointment, but I have a related problem: Since all item types derive from RDOMail, how do I determine that an item is an email message? (MessageClass = "IPM.Note" by default.) At the moment I'm testing for all of the RDOMail-derived types, and assuming that if it isn't any of them, it's an email... (I want to remove all dependency on the MessageClass string for this level of test.) Is there a more efficient way to do this? TIA, MM |
All times are GMT +1. The time now is 12:31 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com