A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

What is going on here



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 12th 08, 05:18 PM posted to microsoft.public.outlook.program_addins
ITrishGuru
external usenet poster
 
Posts: 1
Default What is going on here

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  
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.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:25 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.