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.9.0+32b058abcdf2c7e8d9dd3a676d207b31897eee2e
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 IGridFSBucketTFileId.)
Public methodDeleteAsync
Deletes a file from GridFS.
(Inherited from IGridFSBucketTFileId.)
Public methodDownloadAsBytes
Downloads a file stored in GridFS and returns it as a byte array.
(Inherited from IGridFSBucketTFileId.)
Public methodDownloadAsBytesAsync
Downloads a file stored in GridFS and returns it as a byte array.
(Inherited from IGridFSBucketTFileId.)
Public methodDownloadAsBytesByName
Downloads a file stored in GridFS and returns it as a byte array.
(Inherited from IGridFSBucketTFileId.)
Public methodDownloadAsBytesByNameAsync
Downloads a file stored in GridFS and returns it as a byte array.
(Inherited from IGridFSBucketTFileId.)
Public methodDownloadToStream
Downloads a file stored in GridFS and writes the contents to a stream.
(Inherited from IGridFSBucketTFileId.)
Public methodDownloadToStreamAsync
Downloads a file stored in GridFS and writes the contents to a stream.
(Inherited from IGridFSBucketTFileId.)
Public methodDownloadToStreamByName
Downloads a file stored in GridFS and writes the contents to a stream.
(Inherited from IGridFSBucketTFileId.)
Public methodDownloadToStreamByNameAsync
Downloads a file stored in GridFS and writes the contents to a stream.
(Inherited from IGridFSBucketTFileId.)
Public methodDrop
Drops the files and chunks collections associated with this GridFS bucket.
(Inherited from IGridFSBucketTFileId.)
Public methodDropAsync
Drops the files and chunks collections associated with this GridFS bucket.
(Inherited from IGridFSBucketTFileId.)
Public methodFind(FilterDefinitionGridFSFileInfo, GridFSFindOptions, CancellationToken)
Finds matching entries from the files collection.
Public methodFind(FilterDefinitionGridFSFileInfoTFileId, GridFSFindOptionsTFileId, CancellationToken)
Finds matching entries from the files collection.
(Inherited from IGridFSBucketTFileId.)
Public methodFindAsync(FilterDefinitionGridFSFileInfo, GridFSFindOptions, CancellationToken)
Finds matching entries from the files collection.
Public methodFindAsync(FilterDefinitionGridFSFileInfoTFileId, GridFSFindOptionsTFileId, CancellationToken)
Finds matching entries from the files collection.
(Inherited from IGridFSBucketTFileId.)
Public methodOpenDownloadStream
Opens a Stream that can be used by the application to read data from a GridFS file.
(Inherited from IGridFSBucketTFileId.)
Public methodOpenDownloadStreamAsync
Opens a Stream that can be used by the application to read data from a GridFS file.
(Inherited from IGridFSBucketTFileId.)
Public methodOpenDownloadStreamByName
Opens a Stream that can be used by the application to read data from a GridFS file.
(Inherited from IGridFSBucketTFileId.)
Public methodOpenDownloadStreamByNameAsync
Opens a Stream that can be used by the application to read data from a GridFS file.
(Inherited from IGridFSBucketTFileId.)
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 IGridFSBucketTFileId.)
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 IGridFSBucketTFileId.)
Public methodRename
Renames a GridFS file.
(Inherited from IGridFSBucketTFileId.)
Public methodRenameAsync
Renames a GridFS file.
(Inherited from IGridFSBucketTFileId.)
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 IGridFSBucketTFileId.)
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 IGridFSBucketTFileId.)
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 IGridFSBucketTFileId.)
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 IGridFSBucketTFileId.)
Top
See Also