Scroll to navigation

MONGOC_GRIDFS_FILE_SET_ID(3) Library Functions Manual MONGOC_GRIDFS_FILE_SET_ID(3)

NAME

mongoc_gridfs_file_set_id() - Sets the id of file to any BSON type.

SYNOPSIS


bool mongoc_gridfs_file_set_id (mongoc_gridfs_file_t *file, const bson_value_t *id, bson_error_t error);

PARAMETERS

file
A
mongoc_gridfs_file_t
    
id
A
bson_value_t
    
error
A
bson_error_t
    

DESCRIPTION

Sets the id of file to any BSON type.

If an error occurred, false is returned.

RETURNS

Returns true if successful, otherwise false.

COLOPHON

This page is part of MongoDB C Driver. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.
2016‐10‐12 MongoDB C Driver