Alexey Karpenko
Alexey Karpenko

Reputation: 35

Check mailWindow through mailEntryId is open or not

I open Outlook mail using Outlook Redemption(http://www.dimastr.com/redemption/home.htm) rdoMail.DoAction(rdoMessageAction.maOpen). How I can check open this mail or not when I try open it next time?

Upvotes: 0

Views: 48

Answers (1)

Eugene Astafiev
Eugene Astafiev

Reputation: 49397

The Inspectors property of the Application class from the Outlook object model returns an Inspectors collection object that contains the Inspector objects representing all open inspectors.

You may iterate over all items in the collection and check the CurrentItem property which returns an Object representing the current item being displayed in the inspector.

Then you can check out the EntryID property of the displayed item.

Upvotes: 1

Related Questions