Table of Contents

Method Download

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

Download(Stream, IMongoQuery)

Downloads the most recent version of a GridFS file.

public void Download(Stream stream, IMongoQuery query)

Parameters

stream Stream

The destination stream.

query IMongoQuery

The GridFS file.

Download(Stream, IMongoQuery, int)

Downloads a specific version of a GridFS file.

public void Download(Stream stream, IMongoQuery query, int version)

Parameters

stream Stream

The destination stream.

query IMongoQuery

The GridFS file.

version int

The version to download.

Download(Stream, MongoGridFSFileInfo)

Downloads a GridFS file.

public void Download(Stream stream, MongoGridFSFileInfo fileInfo)

Parameters

stream Stream

The destination stream.

fileInfo MongoGridFSFileInfo

The GridFS file.

Download(Stream, string)

Downloads the most recent version of a GridFS file.

public void Download(Stream stream, string remoteFileName)

Parameters

stream Stream

The destination stream.

remoteFileName string

The remote file name.

Download(Stream, string, int)

Downloads a specific version of a GridFS file.

public void Download(Stream stream, string remoteFileName, int version)

Parameters

stream Stream

The destination stream.

remoteFileName string

The remote file name.

version int

The version to download.

Download(string)

Downloads the most recent version of a GridFS file.

public void Download(string fileName)

Parameters

fileName string

The file name (same local and remote names).

Download(string, int)

Downloads a specific version of a GridFS file.

public void Download(string fileName, int version)

Parameters

fileName string

The file name (same local and remote names).

version int

The version to download.

Download(string, IMongoQuery)

Downloads the most recent version of a GridFS file.

public void Download(string localFileName, IMongoQuery query)

Parameters

localFileName string

The local file name.

query IMongoQuery

The GridFS file.

Download(string, IMongoQuery, int)

Downloads a specific version of a GridFS file.

public void Download(string localFileName, IMongoQuery query, int version)

Parameters

localFileName string

The local file name.

query IMongoQuery

The GridFS file.

version int

The version to download.

Download(string, MongoGridFSFileInfo)

Downloads a GridFS file.

public void Download(string localFileName, MongoGridFSFileInfo fileInfo)

Parameters

localFileName string

The local file name.

fileInfo MongoGridFSFileInfo

The GridFS file.

Download(string, string)

Downloads the most recent version of a GridFS file.

public void Download(string localFileName, string remoteFileName)

Parameters

localFileName string

The local file name.

remoteFileName string

The remote file name.

Download(string, string, int)

Downloads a specific version of a GridFS file.

public void Download(string localFileName, string remoteFileName, int version)

Parameters

localFileName string

The local file name.

remoteFileName string

The remote file name.

version int

The version to download.