Interface IGridFSBucket<TFileId>
Represents a GridFS system bucket.
Type Parameters
TFileId
The type of the file identifier.
Properties
- Database
Gets the database where the GridFS files are stored.
- Options
Gets the options.
Methods
- Delete(TFile
Id, Cancellation Token) Deletes a file from GridFS.
- Delete
Async(TFile Id, Cancellation Token) Deletes a file from GridFS.
- Download
AsBytes(TFile Id, Grid FSDownload Options, Cancellation Token) Downloads a file stored in GridFS and returns it as a byte array.
- Download
AsBytes Async(TFile Id, Grid FSDownload Options, Cancellation Token) Downloads a file stored in GridFS and returns it as a byte array.
- Download
AsBytes ByName(string, Grid FSDownload ByName Options, Cancellation Token) Downloads a file stored in GridFS and returns it as a byte array.
- Download
AsBytes ByName Async(string, Grid FSDownload ByName Options, Cancellation Token) Downloads a file stored in GridFS and returns it as a byte array.
- Download
ToStream(TFile Id, Stream, Grid FSDownload Options, Cancellation Token) Downloads a file stored in GridFS and writes the contents to a stream.
- Download
ToStream Async(TFile Id, Stream, Grid FSDownload Options, Cancellation Token) Downloads a file stored in GridFS and writes the contents to a stream.
- Download
ToStream ByName(string, Stream, Grid FSDownload ByName Options, Cancellation Token) Downloads a file stored in GridFS and writes the contents to a stream.
- Download
ToStream ByName Async(string, Stream, Grid FSDownload ByName Options, Cancellation Token) Downloads a file stored in GridFS and writes the contents to a stream.
- Drop(Cancellation
Token) Drops the files and chunks collections associated with this GridFS bucket.
- Drop
Async(Cancellation Token) Drops the files and chunks collections associated with this GridFS bucket.
- Find(FilterDefinition<GridFSFileInfo<TFileId>>, GridFSFindOptions<TFileId>, CancellationToken)
Finds matching entries from the files collection.
- FindAsync(FilterDefinition<GridFSFileInfo<TFileId>>, GridFSFindOptions<TFileId>, CancellationToken)
Finds matching entries from the files collection.
- Open
Download Stream(TFile Id, Grid FSDownload Options, Cancellation Token) Opens a Stream that can be used by the application to read data from a GridFS file.
- Open
Download Stream Async(TFile Id, Grid FSDownload Options, Cancellation Token) Opens a Stream that can be used by the application to read data from a GridFS file.
- Open
Download Stream ByName(string, Grid FSDownload ByName Options, Cancellation Token) Opens a Stream that can be used by the application to read data from a GridFS file.
- Open
Download Stream ByName Async(string, Grid FSDownload ByName Options, Cancellation Token) Opens a Stream that can be used by the application to read data from a GridFS file.
- Open
Upload Stream(TFile Id, string, Grid FSUpload Options, Cancellation Token) Opens a Stream that can be used by the application to write data to a GridFS file.
- Open
Upload Stream Async(TFile Id, string, Grid FSUpload Options, Cancellation Token) Opens a Stream that can be used by the application to write data to a GridFS file.
- Rename(TFile
Id, string, Cancellation Token) Renames a GridFS file.
- Rename
Async(TFile Id, string, Cancellation Token) Renames a GridFS file.
- Upload
From Bytes(TFile Id, string, byte[], Grid FSUpload Options, Cancellation Token) Uploads a file (or a new revision of a file) to GridFS.
- Upload
From Bytes Async(TFile Id, string, byte[], Grid FSUpload Options, Cancellation Token) Uploads a file (or a new revision of a file) to GridFS.
- Upload
From Stream(TFile Id, string, Stream, Grid FSUpload Options, Cancellation Token) Uploads a file (or a new revision of a file) to GridFS.
- Upload
From Stream Async(TFile Id, string, Stream, Grid FSUpload Options, Cancellation Token) Uploads a file (or a new revision of a file) to GridFS.