Пример #1
0
 /// <summary>
 /// Constructor that creates DeleteRowSet for particular row identified by RowID.
 /// </summary>
 /// <param name="cur">FormOA.ICommenceCursor reference.</param>
 /// <param name="pRowID">row id.</param>
 /// <param name="rcwpub">RCWReleasePublisher object used for COM Interop object cleanup.</param>
 /// <param name="flags">option flags, must be 0.</param>
 internal CommenceDeleteRowSet(FormOA.ICommenceCursor cur, string pRowID, IRcwReleasePublisher rcwpub, CmcOptionFlags flags)
 {
     // deleterowset by ID
     _drs = cur.GetDeleteRowSetByID(pRowID, (int)flags);
     if (_drs == null)
     {
         throw new CommenceCOMException("Unable to obtain a DeleteRowSet from Commence.");
     }
     _rcwReleasePublisher             = rcwpub;
     _rcwReleasePublisher.RCWRelease += this.RCWReleaseHandler;
 }
Пример #2
0
 /// <summary>
 /// Constructor that creates DeleteRowSet with set number of items.
 /// </summary>
 /// <param name="cur">FormOA.ICommenceCursor reference.</param>
 /// <param name="nCount">Number of items to delete.</param>
 /// <param name="rcwpub">RCWReleasePublisher object used for COM Interop object cleanup.</param>
 /// <param name="flags">option flags, must be 0.</param>
 internal CommenceDeleteRowSet(FormOA.ICommenceCursor cur, int nCount, IRcwReleasePublisher rcwpub, CmcOptionFlags flags)
 {
     // deleterowset with set number of rows
     _drs = cur.GetDeleteRowSet(nCount, (int)flags);
     if (_drs == null)
     {
         throw new CommenceCOMException("Unable to obtain a DeleteRowSet from Commence.");
     }
     _rcwReleasePublisher             = rcwpub;
     _rcwReleasePublisher.RCWRelease += this.RCWReleaseHandler;
 }