internal RWSAddressEntry(Redemption.AddressEntry ae) { m_ae = ae; // force Redemption to synchronize with underlying Outlook object model. // fixes empty sender address issue on Outlook 2013 + Exchange 2007 Cached mode object mapiObject = m_ae.MAPIOBJECT; if (mapiObject != null && Marshal.IsComObject(mapiObject)) { Marshal.ReleaseComObject(mapiObject); } }
public void Dispose() { if (m_ae != null && Marshal.IsComObject(m_ae)) { Marshal.ReleaseComObject(m_ae); } m_ae = null; }