Method Open
Open(string, FileMode)
Opens a GridFS file with the specified mode.
public MongoGridFSStream Open(string remoteFileName, FileMode mode)
Parameters
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
stringThe remote file name.
mode
FileModeThe mode.
access
FileAccessThe 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
stringThe remote file name.
mode
FileModeThe mode.
access
FileAccessThe access.
createOptions
MongoGridFSCreateOptionsThe create options.
Returns
- MongoGridFSStream
A stream.