/// <summary> /// Dispose MAPITable object. /// </summary> public void Dispose() { if (tb_ != null) { Marshal.ReleaseComObject(tb_); tb_ = null; } }
/// <summary> /// Initializes a new instance of the MAPITable class. /// </summary> /// <param name="mapiTable"></param> public MAPITable(IMAPITable mapiTable) { tb_ = mapiTable; }
internal static extern Int32 HrQueryAllRows(IMAPITable iMapiTable, IntPtr ptaga, IntPtr pres, IntPtr psos, long crowsMax, out IntPtr pprows);
public IMAPITable GetMsgStoresTable() { if (this.msgStoresTable != null) return this.msgStoresTable; IntPtr pMsgTable = IntPtr.Zero; HRESULT hr = pIMAPISessionGetMsgStoresTable(this.ptr, ref pMsgTable); if (hr != HRESULT.S_OK) throw new Exception("GetMsgStoresTable failed: " + hr.ToString()); this.msgStoresTable = new MAPITable(pMsgTable); return this.msgStoresTable; }
public override void Dispose() { this.msgStoresTable = null; }