Table of Contents

Method CopyTo

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

CopyTo(string)

Copies a GridFS file.

public MongoGridFSFileInfo CopyTo(string destFileName)

Parameters

destFileName string

The 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 string

The destination file name.

createOptions MongoGridFSCreateOptions

The create options.

Returns

MongoGridFSFileInfo

The file info of the new GridFS file.