I am trying to programically access Exchange Global Address List Contact property called Notes (like here -> GAL Contact - Notes ). I am using EWS Managed API in my Visual Studio (C# programming language) application. I think the logic of my code is OK.. maybe nr.Contact.Notes
is not the right option how to achieve that. I would really appreciate your help. Thx in advance!
Here's my code:
NameResolutionCollection nrCol = service.ResolveName("SMTP:", ResolveNameSearchLocation.DirectoryOnly, true);
foreach (NameResolution nr in nrCol)
{
if (nr.Contact.Notes == "mail_user")
{
Console.WriteLine("^^^^^^^DO SOMETHING^^^^^^^");
} // end of if (nr.Contact.Notes == "mail_user")
} // end of foreach