GridFSBucket(TFileId) Class (original) (raw)
GridFSBucketTFileId Class
Represents a GridFS bucket.
Inheritance Hierarchy
Namespace: MongoDB.Driver.GridFS
Assembly: MongoDB.Driver.GridFS (in MongoDB.Driver.GridFS.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed
Syntax
public class GridFSBucket : IGridFSBucket
Public Class GridFSBucket(Of TFileId) Implements IGridFSBucket(Of TFileId)
type GridFSBucket<'TFileId> =
class
interface IGridFSBucket<'TFileId>
end
Type Parameters
TFileId
The type of the file identifier.
The GridFSBucketTFileId type exposes the following members.
Constructors
Properties
| | Name | Description | |
| ---------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- | ---------------------------------------------------- |
| | Database | Gets the database where the GridFS files are stored. |
|
| Options | Gets the options. |
Methods
| | Name | Description | |
| ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| | Delete | Deletes a file from GridFS. |
|
| DeleteAsync | Deletes a file from GridFS. |
|
| DownloadAsBytes | Downloads a file stored in GridFS and returns it as a byte array. |
|
| DownloadAsBytesAsync | Downloads a file stored in GridFS and returns it as a byte array. |
|
| DownloadAsBytesByName | Downloads a file stored in GridFS and returns it as a byte array. |
|
| DownloadAsBytesByNameAsync | Downloads a file stored in GridFS and returns it as a byte array. |
|
| DownloadToStream | Downloads a file stored in GridFS and writes the contents to a stream. |
|
| DownloadToStreamAsync | Downloads a file stored in GridFS and writes the contents to a stream. |
|
| DownloadToStreamByName | Downloads a file stored in GridFS and writes the contents to a stream. |
|
| DownloadToStreamByNameAsync | Downloads a file stored in GridFS and writes the contents to a stream. |
|
| Drop | Drops the files and chunks collections associated with this GridFS bucket. |
|
| DropAsync | Drops the files and chunks collections associated with this GridFS bucket. |
|
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
|
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
| Find | Finds matching entries from the files collection. |
|
| FindAsync | Finds matching entries from the files collection. |
|
| GetHashCode | Serves as the default hash function. (Inherited from Object.) |
|
| GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
| OpenDownloadStream | Opens a Stream that can be used by the application to read data from a GridFS file. |
|
| OpenDownloadStreamAsync | Opens a Stream that can be used by the application to read data from a GridFS file. |
|
| OpenDownloadStreamByName | Opens a Stream that can be used by the application to read data from a GridFS file. |
|
| OpenDownloadStreamByNameAsync | Opens a Stream that can be used by the application to read data from a GridFS file. |
|
| OpenUploadStream | Opens a Stream that can be used by the application to write data to a GridFS file. |
|
| OpenUploadStreamAsync | Opens a Stream that can be used by the application to write data to a GridFS file. |
|
| Rename | Renames a GridFS file. |
|
| RenameAsync | Renames a GridFS file. |
|
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
|
| UploadFromBytes | Uploads a file (or a new revision of a file) to GridFS. |
|
| UploadFromBytesAsync | Uploads a file (or a new revision of a file) to GridFS. |
|
| UploadFromStream | Uploads a file (or a new revision of a file) to GridFS. |
|
| UploadFromStreamAsync | Uploads a file (or a new revision of a file) to GridFS. |
Extension Methods
See Also