Table of Contents

Method Create

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

Create(string)

Creates or overwrites a GridFS file.

public MongoGridFSStream Create(string remoteFileName)

Parameters

remoteFileName string

The remote file name.

Returns

MongoGridFSStream

A stream.

Create(string, MongoGridFSCreateOptions)

Creates or overwrites a GridFS file.

public MongoGridFSStream Create(string remoteFileName, MongoGridFSCreateOptions createOptions)

Parameters

remoteFileName string

The remote file name.

createOptions MongoGridFSCreateOptions

The create options.

Returns

MongoGridFSStream

A stream.