1MONGOC_URI_SET_OPTION_AS_INT32(3M)ongoDB C DriveMrONGOC_URI_SET_OPTION_AS_INT32(3)
2
3
4
6 mongoc_uri_set_option_as_int32 - mongoc_uri_set_option_as_int32()
7
9 bool
10 mongoc_uri_set_option_as_int32 (const mongoc_uri_t *uri,
11 const char *option,
12 int32 value);
13
15 · uri: A mongoc_uri_t.
16
17 · option: The name of an option, case insensitive.
18
19 · value: The new value.
20
22 Sets an individual URI option, after the URI has been parsed from a
23 string.
24
25 Only known options of type int32 can be set. Some int32 options, such
26 as minHeartbeatFrequencyMS, have additional constraints.
27
28 Updates the option in-place if already set, otherwise appends it to the
29 URI's bson_t of options.
30
32 True if successfully set (the named option is a known option of type
33 int32).
34
36 MongoDB, Inc
37
39 2017-present, MongoDB, Inc
40
41
42
43
441.13.1 Jan 24, 2019MONGOC_URI_SET_OPTION_AS_INT32(3)