Solved

What this statement does?

Posted on 2009-03-31
3
206 Views
Last Modified: 2013-12-17
foreach (System.Data.DataRow PacktDataRow in PacktDataTable.Rows)
                {
                  Outlook.ContactItem PacktExistingContact = (Outlook.ContactItem)oContactItems.Find("[Email1Address] ='" + PacktDataRow["Email"] + "'");
----
----
----
}

Where oCoontactItems is,
   Outlook.Items oContactItems = oContactFolder.Items.Restrict("[MessageClass]='IPM.Contact'");
 PacktDataRow is a datarow
0
Comment
Question by:johny_bravo1
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
Daniel Junges earned 500 total points
ID: 24027560
it iterates through all email adress present on PacktDataTable Email field and looks if it is present on you Outlook contacts.
0
 
LVL 8

Author Comment

by:johny_bravo1
ID: 24027580
Thanks junges,
what I want is exactly reverse.
I want to iterate through Oulook contacts and check whether that Email is present in Datatable.
??
0
 
LVL 8

Author Closing Comment

by:johny_bravo1
ID: 31564747
Thanks junges
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question