1MONGOC_GRIDFS_FILE_SET_ID(3) libmongoc MONGOC_GRIDFS_FILE_SET_ID(3)
2
3
4
6 mongoc_gridfs_file_set_id - mongoc_gridfs_file_set_id()
7
9 bool
10 mongoc_gridfs_file_set_id (mongoc_gridfs_file_t *file,
11 const bson_value_t *id,
12 bson_error_t error);
13
15 • file: A :symbol:` mongoc_gridfs_file_t <mongoc_gridfs_file_t>`.
16
17 • id: A bson_value_t.
18
19 • error: A bson_error_t.
20
22 Sets the id of file to any BSON type.
23
24 If an error occurred, false is returned.
25
27 Returns true on success. If any arguments are invalid, returns false
28 and logs an error.
29
31 MongoDB, Inc
32
34 2017-present, MongoDB, Inc
35
36
37
38
391.17.6 Jun 03, 2021 MONGOC_GRIDFS_FILE_SET_ID(3)