---
name: "mongoc_read_prefs_set_mode"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_read_prefs_set_mode"
---

# mongoc\_read\_prefs\_set\_mode(3)

## SYNOPSIS

```
void
mongoc_read_prefs_set_mode (mongoc_read_prefs_t *read_prefs,
                            mongoc_read_mode_t mode);
```

## PARAMETERS

- •

  **read\_prefs**: A *mongoc\_read\_prefs\_t*.

- •

  **mode**: A *mongoc\_read\_mode\_t*.

## DESCRIPTION

Sets the read preference mode. See the MongoDB website for more information on *Read Preferences*.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
