Table of Contents

Method Open

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

Open(string, FileMode)

Opens a GridFS file with the specified mode.

public MongoGridFSStream Open(string remoteFileName, FileMode mode)

Parameters

remoteFileName string

The remote file name.

mode FileMode

The mode.

Returns

MongoGridFSStream

A stream.

Open(string, FileMode, FileAccess)

Opens a GridFS file with the specified mode and access.

public MongoGridFSStream Open(string remoteFileName, FileMode mode, FileAccess access)

Parameters

remoteFileName string

The remote file name.

mode FileMode

The mode.

access FileAccess

The access.

Returns

MongoGridFSStream

A stream.

Open(string, FileMode, FileAccess, MongoGridFSCreateOptions)

Opens a GridFS file with the specified mode, access and create options.

public MongoGridFSStream Open(string remoteFileName, FileMode mode, FileAccess access, MongoGridFSCreateOptions createOptions)

Parameters

remoteFileName string

The remote file name.

mode FileMode

The mode.

access FileAccess

The access.

createOptions MongoGridFSCreateOptions

The create options.

Returns

MongoGridFSStream

A stream.