R
Ra
I am having a weird problem getting an AddressEntry object for a person's name.
I'm using the Outlook 11 Interop object and the code is somthing like this:
AddressList oAL = oNS.AddressLists["Global Address List"];
AddressEntries oAEs = oAL.AddressEntries;
//loop through list and find corresponding address entries
foreach (string name in lstNames) //lstname is a list of
strings
{
AddressEntry oAE = oAEs[name];
....
The Addressentry object returned is not what is expected, but the debugger
shows the correct entry for oAEs[name]. Weird! What is going on here?
Is there a better way to get an Addressentry for a given name?
Any suggestions?
Eventually I do a getFreeBusy for that entry, so even an alternate route is
fine.
Thanks,
Ra
I'm using the Outlook 11 Interop object and the code is somthing like this:
AddressList oAL = oNS.AddressLists["Global Address List"];
AddressEntries oAEs = oAL.AddressEntries;
//loop through list and find corresponding address entries
foreach (string name in lstNames) //lstname is a list of
strings
{
AddressEntry oAE = oAEs[name];
....
The Addressentry object returned is not what is expected, but the debugger
shows the correct entry for oAEs[name]. Weird! What is going on here?
Is there a better way to get an Addressentry for a given name?
Any suggestions?
Eventually I do a getFreeBusy for that entry, so even an alternate route is
fine.
Thanks,
Ra