Answered by:
How can i get Contact categories in Windows Mobile?

Question
-
How can i get Contact categories in Windows Mobile? for example Bussiness, Friends, ...
please guide me.
Wednesday, July 14, 2010 1:12 PM
Answers
-
You can query the contacts folder's PIMPR_FOLDER_CATEGORIES property to get the list of contact categories. Please read the following thread for more information: http://social.msdn.microsoft.com/Forums/en/windowsmobiledev/thread/cfc5f36b-d197-4953-816d-03f466030caa
Please mark the post that helps you, and unmark that does not. This benefits our community.- Marked as answer by warrentang Tuesday, July 20, 2010 9:24 AM
Friday, July 16, 2010 7:04 AM
All replies
-
In Pocket Outlook Object model Interfaces,you can find two methods to get and set the categories for contacts.IContact::get_Categories(BSTR * ppwsz);IContact::put_Categories (BSTR pwsz);
Check out the following link for more detail.Wednesday, July 14, 2010 3:15 PM -
Thanks Prabu but I want to get List of Categories in Windows mobile, not Categories of a contact.Wednesday, July 14, 2010 4:53 PM
-
You can query the contacts folder's PIMPR_FOLDER_CATEGORIES property to get the list of contact categories. Please read the following thread for more information: http://social.msdn.microsoft.com/Forums/en/windowsmobiledev/thread/cfc5f36b-d197-4953-816d-03f466030caa
Please mark the post that helps you, and unmark that does not. This benefits our community.- Marked as answer by warrentang Tuesday, July 20, 2010 9:24 AM
Friday, July 16, 2010 7:04 AM -
Friday, July 16, 2010 6:18 PM
-
You need to use Com Interop to do it in .NET CF. See the following article:
Using COM Interop in .NET Compact Framework 2.0 http://msdn.microsoft.com/en-us/library/aa446497.aspx
Another way is enumerating all the contacts and get their Contact.Categories property. However the performance may not be as good.
Please mark the post that helps you, and unmark that does not. This benefits our community.Monday, July 19, 2010 3:33 AM -
Thanks Chunsheng Tang.
now i used this way that enumerating all the contacts and get their Contact.Categories property but performance is not good. my friend has 800 contacts on his mobile!
Monday, July 19, 2010 7:28 PM