Click or drag to resize
IGridFSBucket Interface
Represents a GridFS system bucket.

Namespace: MongoDB.Driver.GridFS
Assembly: MongoDB.Driver.GridFS (in MongoDB.Driver.GridFS.dll) Version: 2.1.0
Syntax
public interface IGridFSBucket

The IGridFSBucket type exposes the following members.

Methods
  NameDescription
Public methodDeleteAsync
Deletes a file from GridFS.
Public methodDownloadAsBytesAsync
Downloads a file stored in GridFS and returns it as a byte array.
Public methodDownloadAsBytesByNameAsync
Downloads a file stored in GridFS and returns it as a byte array.
Public methodDownloadToStreamAsync
Downloads a file stored in GridFS and writes the contents to a stream.
Public methodDownloadToStreamByNameAsync
Downloads a file stored in GridFS and writes the contents to a stream.
Public methodDropAsync
Drops the files and chunks collections associated with this GridFS bucket.
Public methodFindAsync
Finds matching entries from the files collection.
Public methodOpenDownloadStreamAsync
Opens a Stream that can be used by the application to read data from a GridFS file.
Public methodOpenDownloadStreamByNameAsync
Opens a Stream that can be used by the application to read data from a GridFS file.
Public methodOpenUploadStreamAsync
Opens a Stream that can be used by the application to write data to a GridFS file.
Public methodRenameAsync
Renames a GridFS file.
Public methodUploadFromBytesAsync
Uploads a file (or a new revision of a file) to GridFS.
Public methodUploadFromStreamAsync
Uploads a file (or a new revision of a file) to GridFS.
Top
Properties
  NameDescription
Public propertyDatabase
Gets the database where the GridFS files are stored.
Public propertyOptions
Gets the options.
Top
See Also