title: DistributionList in a AddressEntry is a AddressEntry? - C#
body: <p>I am trying to extract members from a DistributionList. So, I wrote this, </p>
  
  <pre><code>using Outlook = Microsoft.Office.Interop.Outlook;
  
  Outlook.AddressLists addrLists = null;
  
  foreach(Outlook.AddressList addrList in addrLists)
  {
  if(addrList.Name == "XXX-XXX-XXX-XXX")
  {
  Outlook.AddressEntries = addrList.AddressEntries;
  
  foreach(Outlook.AddressEntry addrEntry in AddrEntries)
  {
  //do something
  }
  }
  </code></pre>
  
  <p>The problem is, in this AddressList - XXX-XXX-XXX-XXX, there are some AddressEntry items, and some distribution lists as well. When I do addrEntry.GetExchangeDistributionList(), it returns olOutlookContactAddressEntry for AddressEntry &amp; olOutlookDistributionListAddressEntry for the distribution lists. But, the type of these distribution lists inside a AddressList is still being shown as AddressEntry. Should'nt they be AddressEntries?</p>
  
  <p>Please help, I am seriously blocked. </p>
  
  <p>What I am trying to do is get all the individual ExchangeUsers from a specified distribution list. Maybe someone can suggest me some other way of doing it, please :)</p>
  
  <p>Phani</p>