Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / VS Tools for Office / May 2006

Tip: Looking for answers? Try searching our database.

VSTO Outlook Folder Items

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Clive Godden - 24 May 2006 11:00 GMT
I have a folder that has a mix of Post Items and Mail Items.
How can i iterate through all the items in the folder and find the type so
that i can take action based on that type
Ta
Clive
Alvin Bruney - 25 May 2006 01:59 GMT
just iterate and use a safe cast or if statement to test the object.

roughly (roughly means the code will not compile as written)

dim oresult
for each oresult in Outlook.items
   if oresult.gettype().name == "mailitem"
   end if

end if

Signature

________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------

>I have a folder that has a mix of Post Items and Mail Items.
> How can i iterate through all the items in the folder and find the type so
> that i can take action based on that type
> Ta
> Clive

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.