Hi, I need to use windows mail contact( ICantact interface ) to get all the contacts details. I can easily get the Name Collections. I query the IContactProperties interface using IContact interface. Using IContactProperties interface i get all the name and email address. How to get phone number like CONTACTLABEL_PUB_VOICE, CONTACTLABEL_PUB_MOBILE for home and work place.? Thanks in advance viji
There is one (or there are two) messaging newsgroups where people are more familiar with that stuff. I think there is at least one relevant Outlook newsgroup, if that is what you are using and developing for. "vijay" wrote in message news:38561011-E135-4E3D-B2D5-164909CE66AD@microsoft.com... > Hi, > > > > I need to use windows mail contact( ICantact interface ) to get all the > contacts details. I can easily get the Name Collections. > > > > I query the IContactProperties interface using IContact interface. > > Using IContactProperties interface i get all the name and email address. > > > > How to get phone number like CONTACTLABEL_PUB_VOICE, > CONTACTLABEL_PUB_MOBILE for home and work place.? > > > > Thanks in advance > > > > viji > >
Hi Vijay, You can use IContactProperties::GetPropertyCollection to query this information. When you create a property collection you can provide a label set and/or a collection to filter on. Enumerating the returned collection will give you all the nodes for a given collection that have the specified labels (or the collection will be empty if there aren't any). Note that the labels are applied to the node, so you need to append "/Number" if you want the phone number value. I can point you to some sample code in C# that does this if it will help. Hope that helps, -Joe "vijay" wrote: > Hi, > > > > I need to use windows mail contact( ICantact interface ) to get all the > contacts details. I can easily get the Name Collections. > > > > I query the IContactProperties interface using IContact interface. > > Using IContactProperties interface i get all the name and email address. > > > > How to get phone number like CONTACTLABEL_PUB_VOICE, > CONTACTLABEL_PUB_MOBILE for home and work place.? > > > > Thanks in advance > > > > viji >