Solved

What this statement does?

Posted on 2009-03-31
3
205 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

840 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