Table of Contents

Constructor MongoGridFS

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

MongoGridFS(MongoDatabase)

Initializes a new instance of the MongoGridFS class.

[Obsolete("Use a different constructor instead.")]
public MongoGridFS(MongoDatabase database)

Parameters

database MongoDatabase

The database containing the GridFS collections.

MongoGridFS(MongoDatabase, MongoGridFSSettings)

Initializes a new instance of the MongoGridFS class.

[Obsolete("Use a different constructor instead.")]
public MongoGridFS(MongoDatabase database, MongoGridFSSettings settings)

Parameters

database MongoDatabase

The database containing the GridFS collections.

settings MongoGridFSSettings

The GridFS settings.

MongoGridFS(MongoServer, string, MongoGridFSSettings)

Initializes a new instance of the MongoGridFS class.

public MongoGridFS(MongoServer server, string databaseName, MongoGridFSSettings settings)

Parameters

server MongoServer

The server.

databaseName string

The name of the database.

settings MongoGridFSSettings

The settings.