/// <summary> /// Retrieves the Record of the current item /// </summary> /// <remarks> /// This method wraps the native ups_cursor_move function. /// <br /> /// Returns the record of the current Database item. Throws /// <see cref="UpsConst.UPS_CURSOR_IS_NIL" /> if the Cursor does /// not point to any item. /// </remarks> /// <returns>The record of the current item</returns> /// <exception cref="DatabaseException"> /// <list type="bullet"> /// <item><see cref="UpsConst.UPS_CURSOR_IS_NIL"/> /// if the Cursor does not point to any item</item> /// </list> /// </exception> public byte[] GetRecord() { byte[] ret; lock (db) { ret = NativeMethods.CursorGetRecord(handle, 0); } if (ret == null) { throw new DatabaseException(db.GetLastError()); } return(ret); }