EnvGetDatabaseNames() public static method

public static EnvGetDatabaseNames ( IntPtr handle, short &names ) : int
handle System.IntPtr
names short
return int
Exemplo n.º 1
0
        /// <summary>
        /// Returns the names of all Databases in this Environment
        /// </summary>
        /// <remarks>
        /// This method wraps the native ups_env_get_database_names function.
        /// <br />
        /// This function returns the names of all Databases and the number of
        /// Databases in an Environment.
        /// </remarks>
        /// <returns>An Array with all Database names</returns>
        public short[] GetDatabaseNames()
        {
            short[] ret;
            int     st;

            lock (this) {
                st = NativeMethods.EnvGetDatabaseNames(handle, out ret);
            }
            if (st != 0)
            {
                throw new DatabaseException(st);
            }
            return(ret);
        }