private static void PrintContactGroupHelper(Item item) { ContactGroup contactGroup = item as ContactGroup; // This results in a GetItem operation call to EWS. This loads all the properties, // including the members of the ContactGroup. contactGroup.Load(); Console.WriteLine("Contact group name ({0} members): " + contactGroup.DisplayName, contactGroup.Members.Count.ToString()); if (contactGroup.Members.Count > 0) { ExpandGroupResults expandResults = service.ExpandGroup(contactGroup.Id); foreach (EmailAddress address in expandResults.Members) { try { Item expandedItem = Item.Bind(service, address.Id); ContactOrContactGroupHelper(expandedItem); } catch (ServiceResponseException ex) { Console.WriteLine("Found a reference to contact item that does not exist in your mailbox. You might want to delete this entry from your contact group."); } } } }