![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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. |
#2
|
|||
|
|||
![]()
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. |
Thread Tools | Search this Thread |
Display Modes | |
|
|