How to access Outlook user properities through EWS

1145435 pts.
Tags:
EWS
Microsoft Exchange 2007
Microsoft Outlook
I've been trying to make an application that would use the EWS API to access contacts. I have to look one of Outlook's user properities but I can't figure out how to do it through EWS. This is what I tried so far:
service.Url = new Uri("https://url/ews/Exchange.asmx");
service.Credentials = new WebCredentials("credentials");
var results = service.FindItems(folderId, new ItemView(100));
foreach (var item in results)
{
     Contact contact = item as Contact;
     foreach (var prop in contact.ExtendedProperties)
     {
            Console.WriteLine(prop.Value.ToString());
     }
}
It complies and executes fine but for every contact, the ExtendedProperities count is zero (In Outlook, it's about 30). I'm currently using Exchange 2007. Can someone help me here?
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: