mongoc_uri_set_read_prefs_t() — MongoDB C Driver 1.6.3

- MongoDB C Driver 1.6.3 »
- API Reference »
- mongoc_uri_t

# mongoc_uri_set_read_prefs_t()

## 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.

Created using Sphinx 1.5.3, based on Sphinx Readable Theme.