Method CopyTo
CopyTo(string)
Copies a GridFS file.
public MongoGridFSFileInfo CopyTo(string destFileName)
Parameters
destFileName
stringThe destination file name.
Returns
- MongoGridFSFileInfo
The file info of the new GridFS file.
CopyTo(string, MongoGridFSCreateOptions)
Copies a GridFS file.
public MongoGridFSFileInfo CopyTo(string destFileName, MongoGridFSCreateOptions createOptions)
Parameters
destFileName
stringThe destination file name.
createOptions
MongoGridFSCreateOptionsThe create options.
Returns
- MongoGridFSFileInfo
The file info of the new GridFS file.