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
LVL 8
Johny BravoAsked:
Who is Participating?
 
Daniel JungesConnect With a Mentor Commented:
it iterates through all email adress present on PacktDataTable Email field and looks if it is present on you Outlook contacts.
0
 
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.
??
0
 
Johny BravoAuthor Commented:
Thanks junges
0
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.

All Courses

From novice to tech pro — start learning today.