Table of Contents

Method CopyTo

Namespace
MongoDB.Driver.GridFS
Assembly
MongoDB.Driver.Legacy.dll

CopyTo(string, string)

Copies a GridFS file.

public MongoGridFSFileInfo CopyTo(string sourceFileName, string destFileName)

Parameters

sourceFileName string

The source file name.

destFileName string

The destination file name.

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 string

The source file name.

destFileName string

The destination file name.

createOptions MongoGridFSCreateOptions

The create options.

Returns

MongoGridFSFileInfo

The file info of the new GridFS file.