---
name: "mongoc_uri_set_read_prefs_t"
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_uri_set_read_prefs_t"
---

# mongoc\_uri\_set\_read\_prefs\_t(3)

## SYNOPSIS

```
void
mongoc_uri_set_read_prefs_t (mongoc_uri_t *uri,
                             const mongoc_read_prefs_t *prefs);
```

## PARAMETERS

- •

  **uri**: A *mongoc\_uri\_t*.

- •

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

## DESCRIPTION

Sets a MongoDB URI's read preferences, after the URI has been parsed from a string.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
