Search code examples
outlookvstoms-office

Hooking to Send/Receive Sync event of Outlook Contacts


How can I attach an event handler for SendAndReceive event of Contact folders/Contact Items in Outlook 2007 using VSTO AddIn? I tried using:

Application.ActiveExplorer().SyncObjects.ForEach
{
   SyncObject.SyncEnd += \\Do something
}

But it is not working.


Solution

  • I tried

    Application.ActiveExplorer().SyncObjects.AppFolders.SyncEnd += \\EventHandler
    

    This hooks on to send/receive of all default folders..