GridFSBucket Methods |
The GridFSBucket type exposes the following members.
Name | Description | |
---|---|---|
Delete(BsonValue, CancellationToken) | Obsolete.
Deletes a file from GridFS.
| |
Delete(ObjectId, CancellationToken) |
Deletes a file from GridFS.
| |
DeleteAsync(BsonValue, CancellationToken) | Obsolete.
Deletes a file from GridFS.
| |
DeleteAsync(ObjectId, CancellationToken) |
Deletes a file from GridFS.
| |
DownloadAsBytes(BsonValue, GridFSDownloadOptions, CancellationToken) | Obsolete.
Downloads a file stored in GridFS and returns it as a byte array.
| |
DownloadAsBytes(ObjectId, GridFSDownloadOptions, CancellationToken) |
Downloads a file stored in GridFS and returns it as a byte array.
| |
DownloadAsBytesAsync(BsonValue, GridFSDownloadOptions, CancellationToken) | Obsolete.
Downloads a file stored in GridFS and returns it as a byte array.
| |
DownloadAsBytesAsync(ObjectId, GridFSDownloadOptions, CancellationToken) |
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(BsonValue, Stream, GridFSDownloadOptions, CancellationToken) | Obsolete.
Downloads a file stored in GridFS and writes the contents to a stream.
| |
DownloadToStream(ObjectId, Stream, GridFSDownloadOptions, CancellationToken) |
Downloads a file stored in GridFS and writes the contents to a stream.
| |
DownloadToStreamAsync(BsonValue, Stream, GridFSDownloadOptions, CancellationToken) | Obsolete.
Downloads a file stored in GridFS and writes the contents to a stream.
| |
DownloadToStreamAsync(ObjectId, Stream, GridFSDownloadOptions, CancellationToken) |
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(BsonValue, GridFSDownloadOptions, CancellationToken) | Obsolete.
Opens a Stream that can be used by the application to read data from a GridFS file.
| |
OpenDownloadStream(ObjectId, GridFSDownloadOptions, CancellationToken) |
Opens a Stream that can be used by the application to read data from a GridFS file.
| |
OpenDownloadStreamAsync(BsonValue, GridFSDownloadOptions, CancellationToken) | Obsolete.
Opens a Stream that can be used by the application to read data from a GridFS file.
| |
OpenDownloadStreamAsync(ObjectId, GridFSDownloadOptions, CancellationToken) |
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(BsonValue, String, CancellationToken) | Obsolete.
Renames a GridFS file.
| |
Rename(ObjectId, String, CancellationToken) |
Renames a GridFS file.
| |
RenameAsync(BsonValue, String, CancellationToken) | Obsolete.
Renames a GridFS file.
| |
RenameAsync(ObjectId, String, CancellationToken) |
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.
|
Name | Description | |
---|---|---|
ToBson |
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.) | |
ToBsonDocument |
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.) | |
ToJson |
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.) |