DbMpoolFile::get_pgcookie()
Prev | Chapter 9. The DbMpoolFile Handle | Next

## DbMpoolFile::get_pgcookie()

    #include <db_cxx.h>

    int
    DbMpoolFile::get_pgcookie(DBT *dbt);

The `DbMpoolFile::get_pgcookie()` method returns the byte string provided to the functions registered to do input or output processing of the file's pages as they are read from or written to, the backing filesystem store. This byte string is configured using the DbMpoolFile::set_pgcookie() method.

The `DbMpoolFile::get_pgcookie()` method may be called at any time during the life of the application.

The `DbMpoolFile::get_pgcookie()` method either returns a non-zero error value or throws an exception that encapsulates a non-zero error value on failure, and returns 0 on success.

### Parameters

#### dbt

The `DbMpoolFile::get_pgcookie()` method returns a reference to the byte string in dbt.

### Class

DbEnv, DbMpoolFile

### See Also

Memory Pools and Related Methods, DbMpoolFile::set_pgcookie()

Prev | Up | Next
DbMpoolFile::get_maxsize() | Home | DbMpoolFile::get_priority()