mongoc_read_prefs_set_tags() — MongoDB C Driver 1.6.3

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

# mongoc_read_prefs_set_tags()

## Synopsis

    void
    mongoc_read_prefs_set_tags (mongoc_read_prefs_t *read_prefs,
                                const bson_t *tags);

## Parameters

- `read_prefs`: A mongoc_read_prefs_t.
- `tags`: A `bson_t`.

## Description

Sets the tags to be used for the read preference. Only mongod instances matching these tags will be suitable for handling the request.

Created using Sphinx 1.5.3, based on Sphinx Readable Theme.