Table of Contents

Constructor MongoGridFSFileInfo

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

MongoGridFSFileInfo(MongoGridFS, string)

Initializes a new instance of the GridFSFileInfo class.

[Obsolete("Use a different constructor instead.")]
public MongoGridFSFileInfo(MongoGridFS gridFS, string remoteFileName)

Parameters

gridFS MongoGridFS

The GridFS file system that contains the GridFS file.

remoteFileName string

The remote file name.

MongoGridFSFileInfo(MongoGridFS, string, int)

Initializes a new instance of the GridFSFileInfo class.

[Obsolete("Use a different constructor instead.")]
public MongoGridFSFileInfo(MongoGridFS gridFS, string remoteFileName, int chunkSize)

Parameters

gridFS MongoGridFS

The GridFS file system that contains the GridFS file.

remoteFileName string

The remote file name.

chunkSize int

The chunk size.

MongoGridFSFileInfo(MongoGridFS, string, MongoGridFSCreateOptions)

Initializes a new instance of the GridFSFileInfo class.

[Obsolete("Use a different constructor instead.")]
public MongoGridFSFileInfo(MongoGridFS gridFS, string remoteFileName, MongoGridFSCreateOptions createOptions)

Parameters

gridFS MongoGridFS

The GridFS file system that contains the GridFS file.

remoteFileName string

The remote file name.

createOptions MongoGridFSCreateOptions

The create options.

MongoGridFSFileInfo(MongoServer, MongoServerInstance, string, MongoGridFSSettings, string)

Initializes a new instance of the MongoGridFSFileInfo class.

public MongoGridFSFileInfo(MongoServer server, MongoServerInstance serverInstance, string databaseName, MongoGridFSSettings gridFSSettings, string remoteFileName)

Parameters

server MongoServer

The server.

serverInstance MongoServerInstance

The server instance.

databaseName string

Name of the database.

gridFSSettings MongoGridFSSettings

The GridFS settings.

remoteFileName string

The remote file name.

MongoGridFSFileInfo(MongoServer, MongoServerInstance, string, MongoGridFSSettings, BsonDocument)

Initializes a new instance of the MongoGridFSFileInfo class.

public MongoGridFSFileInfo(MongoServer server, MongoServerInstance serverInstance, string databaseName, MongoGridFSSettings gridFSSettings, BsonDocument fileInfo)

Parameters

server MongoServer

The server.

serverInstance MongoServerInstance

The server instance.

databaseName string

Name of the database.

gridFSSettings MongoGridFSSettings

The GridFS settings.

fileInfo BsonDocument

The fileInfo.

MongoGridFSFileInfo(MongoServer, MongoServerInstance, string, MongoGridFSSettings, string, MongoGridFSCreateOptions)

Initializes a new instance of the MongoGridFSFileInfo class.

public MongoGridFSFileInfo(MongoServer server, MongoServerInstance serverInstance, string databaseName, MongoGridFSSettings gridFSSettings, string remoteFileName, MongoGridFSCreateOptions createOptions)

Parameters

server MongoServer

The server.

serverInstance MongoServerInstance

The server instance.

databaseName string

Name of the database.

gridFSSettings MongoGridFSSettings

The GridFS settings.

remoteFileName string

The remote file name.

createOptions MongoGridFSCreateOptions

The create options.