GetHandle() public method

Returns the internal cursor handle.
public GetHandle ( ) : IntPtr
return System.IntPtr
Beispiel #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));
        }
Beispiel #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);
        }