Best practices in developing managed Outlook add-ins
Even though the Outlook interop assemblies allow you to write managed solutions that interoperate with Outlook, Outlook predates the .NET Framework and is designed to support programmability through unmanaged languages such as Visual Basic for Applications (VBA) and Visual Basic. This topic lists the top areas that you should be aware of when you develop a managed add-in for Outlook.
- Systematically releasing objects
- Using a separate application domain to avoid crashing
- Using a trusted application object provided by Office Developer Tools for Visual Studio
- Scoping variables appropriately in event handlers
- Avoiding unsupported technologies in managed Outlook add-ins
- Using late binding if depending on multiple versions of Outlook