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 | | | ---------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- | ---------------------------------------------------- | | Public property | Database | Gets the database where the GridFS files are stored. | | Public property | Options | Gets the options. |

Top

Methods

| | Name | Description | | | ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Public method | Delete | Deletes a file from GridFS. | | Public method | DeleteAsync | Deletes a file from GridFS. | | Public method | DownloadAsBytes | Downloads a file stored in GridFS and returns it as a byte array. | | Public method | DownloadAsBytesAsync | Downloads a file stored in GridFS and returns it as a byte array. | | Public method | DownloadAsBytesByName | Downloads a file stored in GridFS and returns it as a byte array. | | Public method | DownloadAsBytesByNameAsync | Downloads a file stored in GridFS and returns it as a byte array. | | Public method | DownloadToStream | Downloads a file stored in GridFS and writes the contents to a stream. | | Public method | DownloadToStreamAsync | Downloads a file stored in GridFS and writes the contents to a stream. | | Public method | DownloadToStreamByName | Downloads a file stored in GridFS and writes the contents to a stream. | | Public method | DownloadToStreamByNameAsync | Downloads a file stored in GridFS and writes the contents to a stream. | | Public method | Drop | Drops the files and chunks collections associated with this GridFS bucket. | | Public method | DropAsync | Drops the files and chunks collections associated with this GridFS bucket. | | Public method | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | | Protected method | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | | Public method | Find | Finds matching entries from the files collection. | | Public method | FindAsync | Finds matching entries from the files collection. | | Public method | GetHashCode | Serves as the default hash function. (Inherited from Object.) | | Public method | GetType | Gets the Type of the current instance. (Inherited from Object.) | | Protected method | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | | Public method | OpenDownloadStream | Opens a Stream that can be used by the application to read data from a GridFS file. | | Public method | OpenDownloadStreamAsync | Opens a Stream that can be used by the application to read data from a GridFS file. | | Public method | OpenDownloadStreamByName | Opens a Stream that can be used by the application to read data from a GridFS file. | | Public method | OpenDownloadStreamByNameAsync | Opens a Stream that can be used by the application to read data from a GridFS file. | | Public method | OpenUploadStream | Opens a Stream that can be used by the application to write data to a GridFS file. | | Public method | OpenUploadStreamAsync | Opens a Stream that can be used by the application to write data to a GridFS file. | | Public method | Rename | Renames a GridFS file. | | Public method | RenameAsync | Renames a GridFS file. | | Public method | ToString | Returns a string that represents the current object. (Inherited from Object.) | | Public method | UploadFromBytes | Uploads a file (or a new revision of a file) to GridFS. | | Public method | UploadFromBytesAsync | Uploads a file (or a new revision of a file) to GridFS. | | Public method | UploadFromStream | Uploads a file (or a new revision of a file) to GridFS. | | Public method | UploadFromStreamAsync | Uploads a file (or a new revision of a file) to GridFS. |

Top

Extension Methods

See Also

Reference