Click or drag to resize

GridFSBucket Methods

The GridFSBucket type exposes the following members.

Methods
  NameDescription
Public methodDelete(TFileId, CancellationToken)
Deletes a file from GridFS.
(Inherited from GridFSBucketTFileId.)
Public methodDelete(BsonValue, CancellationToken)
Deletes a file from GridFS.
Public methodDeleteAsync(TFileId, CancellationToken)
Deletes a file from GridFS.
(Inherited from GridFSBucketTFileId.)
Public methodDeleteAsync(BsonValue, CancellationToken)
Deletes a file from GridFS.
Public methodDownloadAsBytes(TFileId, GridFSDownloadOptions, CancellationToken)
Downloads a file stored in GridFS and returns it as a byte array.
(Inherited from GridFSBucketTFileId.)
Public methodDownloadAsBytes(BsonValue, GridFSDownloadOptions, CancellationToken)
Downloads a file stored in GridFS and returns it as a byte array.
Public methodDownloadAsBytesAsync(TFileId, GridFSDownloadOptions, CancellationToken)
Downloads a file stored in GridFS and returns it as a byte array.
(Inherited from GridFSBucketTFileId.)
Public methodDownloadAsBytesAsync(BsonValue, GridFSDownloadOptions, CancellationToken)
Downloads a file stored in GridFS and returns it as a byte array.
Public methodDownloadAsBytesByName
Downloads a file stored in GridFS and returns it as a byte array.
(Inherited from GridFSBucketTFileId.)
Public methodDownloadAsBytesByNameAsync
Downloads a file stored in GridFS and returns it as a byte array.
(Inherited from GridFSBucketTFileId.)
Public methodDownloadToStream(TFileId, Stream, GridFSDownloadOptions, CancellationToken)
Downloads a file stored in GridFS and writes the contents to a stream.
(Inherited from GridFSBucketTFileId.)
Public methodDownloadToStream(BsonValue, Stream, GridFSDownloadOptions, CancellationToken)
Downloads a file stored in GridFS and writes the contents to a stream.
Public methodDownloadToStreamAsync(TFileId, Stream, GridFSDownloadOptions, CancellationToken)
Downloads a file stored in GridFS and writes the contents to a stream.
(Inherited from GridFSBucketTFileId.)
Public methodDownloadToStreamAsync(BsonValue, Stream, GridFSDownloadOptions, CancellationToken)
Downloads a file stored in GridFS and writes the contents to a stream.
Public methodDownloadToStreamByName
Downloads a file stored in GridFS and writes the contents to a stream.
(Inherited from GridFSBucketTFileId.)
Public methodDownloadToStreamByNameAsync
Downloads a file stored in GridFS and writes the contents to a stream.
(Inherited from GridFSBucketTFileId.)
Public methodDrop
Drops the files and chunks collections associated with this GridFS bucket.
(Inherited from GridFSBucketTFileId.)
Public methodDropAsync
Drops the files and chunks collections associated with this GridFS bucket.
(Inherited from GridFSBucketTFileId.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
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 GridFSBucketTFileId.)
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 GridFSBucketTFileId.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodOpenDownloadStream(TFileId, GridFSDownloadOptions, CancellationToken)
Opens a Stream that can be used by the application to read data from a GridFS file.
(Inherited from GridFSBucketTFileId.)
Public methodOpenDownloadStream(BsonValue, GridFSDownloadOptions, CancellationToken)
Opens a Stream that can be used by the application to read data from a GridFS file.
Public methodOpenDownloadStreamAsync(TFileId, GridFSDownloadOptions, CancellationToken)
Opens a Stream that can be used by the application to read data from a GridFS file.
(Inherited from GridFSBucketTFileId.)
Public methodOpenDownloadStreamAsync(BsonValue, GridFSDownloadOptions, CancellationToken)
Opens a Stream that can be used by the application to read data from a GridFS file.
Public methodOpenDownloadStreamByName
Opens a Stream that can be used by the application to read data from a GridFS file.
(Inherited from GridFSBucketTFileId.)
Public methodOpenDownloadStreamByNameAsync
Opens a Stream that can be used by the application to read data from a GridFS file.
(Inherited from GridFSBucketTFileId.)
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 GridFSBucketTFileId.)
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 GridFSBucketTFileId.)
Public methodRename(TFileId, String, CancellationToken)
Renames a GridFS file.
(Inherited from GridFSBucketTFileId.)
Public methodRename(BsonValue, String, CancellationToken)
Renames a GridFS file.
Public methodRenameAsync(TFileId, String, CancellationToken)
Renames a GridFS file.
(Inherited from GridFSBucketTFileId.)
Public methodRenameAsync(BsonValue, String, CancellationToken)
Renames a GridFS file.
Public methodToString (Inherited from Object.)
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 GridFSBucketTFileId.)
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 GridFSBucketTFileId.)
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 GridFSBucketTFileId.)
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 GridFSBucketTFileId.)
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also