C
Codex
In C# add-ins for outlook, my understanding is that the
Outlook.MailItem.MAPIOBJECT refers to an IMessage item from which we
can extract the mail headers.
Further, I understand that in other languages, you can use the
QueryInterface method to get the IMessage object from MAPIOBJECT.
C# does not have a QueryInterface method. I've tried typecasting
MAPIOBJECT to CDO.IMessage, but I get a typecast exception.
How do I get the IMessage item from Outlook.MailItem.MAPIOBJECT
Thanks,
-Codex
Outlook.MailItem.MAPIOBJECT refers to an IMessage item from which we
can extract the mail headers.
Further, I understand that in other languages, you can use the
QueryInterface method to get the IMessage object from MAPIOBJECT.
C# does not have a QueryInterface method. I've tried typecasting
MAPIOBJECT to CDO.IMessage, but I get a typecast exception.
How do I get the IMessage item from Outlook.MailItem.MAPIOBJECT
Thanks,
-Codex