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