• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 214
  • Last Modified:

What this statement does?

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
Johny Bravo
Johny Bravo
  • 2
1 Solution
Daniel JungesCommented:
it iterates through all email adress present on PacktDataTable Email field and looks if it is present on you Outlook contacts.
Johny BravoAuthor Commented:
Thanks junges,
what I want is exactly reverse.
I want to iterate through Oulook contacts and check whether that Email is present in Datatable.
Johny BravoAuthor Commented:
Thanks junges
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now