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.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
Syntax
public interface IGridFSBucket : IGridFSBucket<ObjectId>

The IGridFSBucket type exposes the following members.

Properties
Methods
  NameDescription
Public methodDelete
Deletes a file from GridFS.
(Inherited from IGridFSBucket<TFileId>.)
Public methodDeleteAsync
Deletes a file from GridFS.
(Inherited from IGridFSBucket<TFileId>.)
Public methodDownloadAsBytes
Downloads a file stored in GridFS and returns it as a byte array.
(Inherited from IGridFSBucket<TFileId>.)
Public methodDownloadAsBytesAsync
Downloads a file stored in GridFS and returns it as a byte array.
(Inherited from IGridFSBucket<TFileId>.)
Public methodDownloadAsBytesByName
Downloads a file stored in GridFS and returns it as a byte array.
(Inherited from IGridFSBucket<TFileId>.)
Public methodDownloadAsBytesByNameAsync
Downloads a file stored in GridFS and returns it as a byte array.
(Inherited from IGridFSBucket<TFileId>.)
Public methodDownloadToStream
Downloads a file stored in GridFS and writes the contents to a stream.
(Inherited from IGridFSBucket<TFileId>.)
Public methodDownloadToStreamAsync
Downloads a file stored in GridFS and writes the contents to a stream.
(Inherited from IGridFSBucket<TFileId>.)
Public methodDownloadToStreamByName
Downloads a file stored in GridFS and writes the contents to a stream.
(Inherited from IGridFSBucket<TFileId>.)
Public methodDownloadToStreamByNameAsync
Downloads a file stored in GridFS and writes the contents to a stream.
(Inherited from IGridFSBucket<TFileId>.)
Public methodDrop
Drops the files and chunks collections associated with this GridFS bucket.
(Inherited from IGridFSBucket<TFileId>.)
Public methodDropAsync
Drops the files and chunks collections associated with this GridFS bucket.
(Inherited from IGridFSBucket<TFileId>.)
Public methodFind(FilterDefinition<GridFSFileInfo>, GridFSFindOptions, CancellationToken)
Finds matching entries from the files collection.
Public methodFind(FilterDefinition<GridFSFileInfo<TFileId>>, GridFSFindOptions<TFileId>, CancellationToken)
Finds matching entries from the files collection.
(Inherited from IGridFSBucket<TFileId>.)
Public methodFindAsync(FilterDefinition<GridFSFileInfo>, GridFSFindOptions, CancellationToken)
Finds matching entries from the files collection.
Public methodFindAsync(FilterDefinition<GridFSFileInfo<TFileId>>, GridFSFindOptions<TFileId>, CancellationToken)
Finds matching entries from the files collection.
(Inherited from IGridFSBucket<TFileId>.)
Public methodOpenDownloadStream
Opens a Stream that can be used by the application to read data from a GridFS file.
(Inherited from IGridFSBucket<TFileId>.)
Public methodOpenDownloadStreamAsync
Opens a Stream that can be used by the application to read data from a GridFS file.
(Inherited from IGridFSBucket<TFileId>.)
Public methodOpenDownloadStreamByName
Opens a Stream that can be used by the application to read data from a GridFS file.
(Inherited from IGridFSBucket<TFileId>.)
Public methodOpenDownloadStreamByNameAsync
Opens a Stream that can be used by the application to read data from a GridFS file.
(Inherited from IGridFSBucket<TFileId>.)
Public methodOpenUploadStream(String, GridFSUploadOptions, CancellationToken)
Opens a Stream that can be used by the application to write data to a GridFS file.
Public methodOpenUploadStream(TFileId, String, GridFSUploadOptions, CancellationToken)
Opens a Stream that can be used by the application to write data to a GridFS file.
(Inherited from IGridFSBucket<TFileId>.)
Public methodOpenUploadStreamAsync(String, GridFSUploadOptions, CancellationToken)
Opens a Stream that can be used by the application to write data to a GridFS file.
Public methodOpenUploadStreamAsync(TFileId, String, GridFSUploadOptions, CancellationToken)
Opens a Stream that can be used by the application to write data to a GridFS file.
(Inherited from IGridFSBucket<TFileId>.)
Public methodRename
Renames a GridFS file.
(Inherited from IGridFSBucket<TFileId>.)
Public methodRenameAsync
Renames a GridFS file.
(Inherited from IGridFSBucket<TFileId>.)
Public methodUploadFromBytes(String,Byte[], GridFSUploadOptions, CancellationToken)
Uploads a file (or a new revision of a file) to GridFS.
Public methodUploadFromBytes(TFileId, String,Byte[], GridFSUploadOptions, CancellationToken)
Uploads a file (or a new revision of a file) to GridFS.
(Inherited from IGridFSBucket<TFileId>.)
Public methodUploadFromBytesAsync(String,Byte[], GridFSUploadOptions, CancellationToken)
Uploads a file (or a new revision of a file) to GridFS.
Public methodUploadFromBytesAsync(TFileId, String,Byte[], GridFSUploadOptions, CancellationToken)
Uploads a file (or a new revision of a file) to GridFS.
(Inherited from IGridFSBucket<TFileId>.)
Public methodUploadFromStream(String, Stream, GridFSUploadOptions, CancellationToken)
Uploads a file (or a new revision of a file) to GridFS.
Public methodUploadFromStream(TFileId, String, Stream, GridFSUploadOptions, CancellationToken)
Uploads a file (or a new revision of a file) to GridFS.
(Inherited from IGridFSBucket<TFileId>.)
Public methodUploadFromStreamAsync(String, Stream, GridFSUploadOptions, CancellationToken)
Uploads a file (or a new revision of a file) to GridFS.
Public methodUploadFromStreamAsync(TFileId, String, Stream, GridFSUploadOptions, CancellationToken)
Uploads a file (or a new revision of a file) to GridFS.
(Inherited from IGridFSBucket<TFileId>.)
Top
See Also