mongoc_uri_get_read_prefs() — MongoDB C Driver 1.6.3

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

# mongoc_uri_get_read_prefs()

## Synopsis

    const bson_t *
    mongoc_uri_get_read_prefs (const mongoc_uri_t *uri);

## Deprecated

Warning

This function is deprecated and should not be used in new code.

Please use mongoc_uri_get_read_prefs_t() instead.

## Parameters

- `uri`: A mongoc_uri_t.

## Description

Fetches a bson document containing read preference tag information from a URI. Note that this does not include the read preference mode.

## Returns

Returns a bson document that should not be modified or freed.

Created using Sphinx 1.5.3, based on Sphinx Readable Theme.