GetHandle() public method

Returns the internal cursor handle.
public GetHandle ( ) : IntPtr
return System.IntPtr
Exemplo n.º 1
0
        public Result SelectRange(String query, Cursor begin, Cursor end)
        {
            int    st;
            IntPtr result = new IntPtr(0);

            lock (this) {
                st = NativeMethods.EnvSelectRange(handle, query,
                                                  begin != null ? begin.GetHandle() : IntPtr.Zero,
                                                  end != null ? end.GetHandle() : IntPtr.Zero,
                                                  out result);
            }
            if (st != 0)
            {
                throw new DatabaseException(st);
            }

            return(new Result(result));
        }
Exemplo n.º 2
0
        public Result SelectRange(String query, Cursor begin, Cursor end)
        {
            int st;
              IntPtr result = new IntPtr(0);
              lock (this) {
            st = NativeMethods.EnvSelectRange(handle, query,
                                begin != null ? begin.GetHandle() : IntPtr.Zero,
                                end != null ? end.GetHandle() : IntPtr.Zero,
                                out result);
              }
              if (st != 0)
            throw new DatabaseException(st);

              return new Result(result);
        }