Problem with finding contact by id
I'm trying to find a contact based on its ItemId and it doesn't seem
to work:
System.ComponentModel.PropertyDescriptor pdContact =
System.ComponentModel.TypeDescriptor.GetProperties(typeof(Microsoft.WindowsMobile.PocketOutlook.Contact))
["ItemId"];
ItemId itemid = outlook.Contacts.Items[0].ItemId;
int index = outlook.Contacts.Items.Find(pdContact, itemid);
index is always -1.
Date:Fri, 27 Jul 2007 22:08:38 -0000
Author:
|