EnvSelectRange() private method

private EnvSelectRange ( IntPtr handle, String query, IntPtr begin, IntPtr end, IntPtr &result ) : int
handle System.IntPtr
query String
begin System.IntPtr
end System.IntPtr
result System.IntPtr
return int
コード例 #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));
        }