Moyosoft Products | Services | Download | Contact us    
Java Outlook Connector
Products  >  Java Outlook Connector  >  API Reference    
API Reference
   
Overview  |  
Classic JavaDoc

Outlook.getAddressLists

public AddressListsCollection getAddressLists()

Community comments


List all entries in the address book
Vote up  |  Vote down
Outlook outlook = new Outlook();
Iterator addressLists = outlook.getAddressLists().iterator();

while(addressLists.hasNext())
{
  AddressList addressList = (AddressList) addressLists.next();
  Iterator addressEntries = addressList.getAddressEntries().iterator();

  while(addressEntries.hasNext())
  {
    AddressEntry addressEntry = (AddressEntry) addressEntries.next();
    System.out.println("Address entry: " + addressEntry.getName() + " / " + addressEntry.getAddress());
                
    addressEntry.dispose();
   }
}

outlook.dispose();


Powered by JavaDocPlus