1MONGOC_CLIENT_SET_SERVER_API(3)    libmongoc   MONGOC_CLIENT_SET_SERVER_API(3)
2
3
4

NAME

6       mongoc_client_set_server_api - mongoc_client_set_server_api()
7

SYNOPSIS

9          bool
10          mongoc_client_set_server_api (mongoc_client_t *client,
11                                        const mongoc_server_api_t *api,
12                                        bson_error_t *error);
13
14       Set the API version to use for client. Once the API version is set on a
15       client, it may not be changed to a new value. Attempting to do so  will
16       cause this method to fail and set error.
17

PARAMETERS

19client: A mongoc_client_t.
20
21api: A mongoc_server_api_t.
22
23error: A bson_error_t.
24

RETURNS

26       True if the version was successfully set, false if not. On failure, er‐
27       ror will be set.
28

AUTHOR

30       MongoDB, Inc
31
33       2017-present, MongoDB, Inc
34
35
36
37
381.23.1                           Oct 20, 2022  MONGOC_CLIENT_SET_SERVER_API(3)
Impressum