1MONGOC_CLIENT_POOL_SET_SERVER_API(3)libmongoMcONGOC_CLIENT_POOL_SET_SERVER_API(3)
2
3
4

NAME

6       mongoc_client_pool_set_server_api - mongoc_client_pool_set_server_api()
7

SYNOPSIS

9          bool
10          mongoc_client_pool_set_server_api (mongoc_client_pool_t *pool,
11                                             const mongoc_server_api_t *api,
12                                             bson_error_t *error);
13
14       Set  the  API version to use for clients created through pool. Once the
15       API version is set on a pool, it may not be changed to a new value. At‐
16       tempting to do so will cause this method to fail and set error.
17

PARAMETERS

19pool: A mongoc_client_pool_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.24.3                           Aug 17, 20M2O3NGOC_CLIENT_POOL_SET_SERVER_API(3)
Impressum