View Single Post
  #2  
Old March 12th 08, 05:42 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default What is going on here

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.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"ITrishGuru" wrote in message ...
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.

Ads