Library Version 12.1.6.2

DbSite::get_eid()
Prev | Chapter 11. Replication Methods | Next

## DbSite::get_eid()

    #include <db_cxx.h>

    int
    DbSite::get_eid(int *eidp);

The `DbSite::get_eid()` method returns a replication site's environment ID (EID). This method may not be called before opening the database environment.

The `DbSite::get_eid()` 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

#### eidp

References memory into which the EID will be copied.

### Errors

The `DbSite::get_eid()` method may fail and throw a DbException exception, encapsulating one of the following non-zero errors, or return one of the following non-zero errors:

#### EINVAL

If the database environment was not already opened; or if an invalid flag value or parameter was specified.

### Class

DbSite

### See Also

Replication and Related Methods

Prev | Up | Next
DbSite::get_address() | Home | DbSite::remove()