Ejemplo n.º 1
0
 /// <summary>
 /// Clean up any resources being used.
 /// </summary>
 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
 protected void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (session_ != null)
         {
             Marshal.ReleaseComObject(session_);
             session_ = null;
             MAPINative.MAPIUninitialize();
         }
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Clean up any resources being used.
 /// </summary>
 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
 protected void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (session_ != null)
         {
             if (CurrentStore != null)
             {
                 CurrentStore.Dispose();
                 CurrentStore = null;
             }
             if (content_ != null)
             {
                 content_.Dispose();
                 content_ = null;
             }
             Marshal.ReleaseComObject(session_);
             session_ = null;
             MAPINative.MAPIUninitialize();
         }
     }
 }