RDO: using TypeOf to determine [OOM] Class

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
 
D

Dmitry Streblechenko

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
-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top