RDO: using TypeOf to determine [OOM] Class

  • Thread starter Thread starter Mark McGinty
  • Start date Start date
M

Mark McGinty

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
 
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
-
 
Back
Top