What is going on here

  • Thread starter Thread starter ITrishGuru
  • Start date Start date
I

ITrishGuru

Hi all,
I'm not sure about the follwoing piece of code.
Outlook.MailItem Item = (Outlook.MailItem)Inspector.CurrentItem;

What is actually happening here?
Is this a cast statement?
Or is it a way of linking addresses of a mailitems inspector?

Cheers,
Kevin.
 
That statement takes the item displayed in an Inspector window and attempts to cast it as an Outlook.MailItem to an object named Item. If successful, the addresses for the item displayed in the Inspector will be available through the Item.Recipients collection.
 
Back
Top