CursorGet() public static méthode

public static CursorGet ( IntPtr handle, int flags, byte &keyArray, byte &recordArray ) : int
handle System.IntPtr
flags int
keyArray byte
recordArray byte
Résultat int
        /// <summary>
        /// Like <see cref="Cursor.Move" />, but returns false only if cursor points to the first (or last) item, and a move to the previous (or next) item was requested
        /// (i.e., when ups_cursor_move returns <see cref="UpsConst.UPS_KEY_NOT_FOUND" />).
        /// </summary>
        public bool TryMove(ref byte [] key, ref byte [] record, int flags)
        {
            int st;

            lock (db)
            {
                st = NativeMethods.CursorGet(handle, flags, ref key, ref record);
            }
            if (st == 0)
            {
                return(true);
            }
            if (st == UpsConst.UPS_KEY_NOT_FOUND)
            {
                key    = null;
                record = null;
                return(false);
            }
            throw new DatabaseException(st);
        }