GridFSBucket Class (original) (raw)

Name

Description

Public method

Delete(TFileId, CancellationToken)

Deletes a file from GridFS.

(Inherited from GridFSBucketTFileId.)

Public method

Delete(BsonValue, CancellationToken)

Deletes a file from GridFS.

Public method

DeleteAsync(TFileId, CancellationToken)

Deletes a file from GridFS.

(Inherited from GridFSBucketTFileId.)

Public method

DeleteAsync(BsonValue, CancellationToken)

Deletes a file from GridFS.

Public method

DownloadAsBytes(TFileId, GridFSDownloadOptions, CancellationToken)

Downloads a file stored in GridFS and returns it as a byte array.

(Inherited from GridFSBucketTFileId.)

Public method

DownloadAsBytes(BsonValue, GridFSDownloadOptions, CancellationToken)

Downloads a file stored in GridFS and returns it as a byte array.

Public method

DownloadAsBytesAsync(TFileId, GridFSDownloadOptions, CancellationToken)

Downloads a file stored in GridFS and returns it as a byte array.

(Inherited from GridFSBucketTFileId.)

Public method

DownloadAsBytesAsync(BsonValue, GridFSDownloadOptions, CancellationToken)

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.

(Inherited from GridFSBucketTFileId.)

Public method

DownloadAsBytesByNameAsync

Downloads a file stored in GridFS and returns it as a byte array.

(Inherited from GridFSBucketTFileId.)

Public method

DownloadToStream(TFileId, Stream, GridFSDownloadOptions, CancellationToken)

Downloads a file stored in GridFS and writes the contents to a stream.

(Inherited from GridFSBucketTFileId.)

Public method

DownloadToStream(BsonValue, Stream, GridFSDownloadOptions, CancellationToken)

Downloads a file stored in GridFS and writes the contents to a stream.

Public method

DownloadToStreamAsync(TFileId, Stream, GridFSDownloadOptions, CancellationToken)

Downloads a file stored in GridFS and writes the contents to a stream.

(Inherited from GridFSBucketTFileId.)

Public method

DownloadToStreamAsync(BsonValue, Stream, GridFSDownloadOptions, CancellationToken)

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.

(Inherited from GridFSBucketTFileId.)

Public method

DownloadToStreamByNameAsync

Downloads a file stored in GridFS and writes the contents to a stream.

(Inherited from GridFSBucketTFileId.)

Public method

Drop

Drops the files and chunks collections associated with this GridFS bucket.

(Inherited from GridFSBucketTFileId.)

Public method

DropAsync

Drops the files and chunks collections associated with this GridFS bucket.

(Inherited from GridFSBucketTFileId.)

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(FilterDefinitionGridFSFileInfo, GridFSFindOptions, CancellationToken)

Finds matching entries from the files collection.

Public method

Find(FilterDefinitionGridFSFileInfoTFileId, GridFSFindOptionsTFileId, CancellationToken)

Finds matching entries from the files collection.

(Inherited from GridFSBucketTFileId.)

Public method

FindAsync(FilterDefinitionGridFSFileInfo, GridFSFindOptions, CancellationToken)

Finds matching entries from the files collection.

Public method

FindAsync(FilterDefinitionGridFSFileInfoTFileId, GridFSFindOptionsTFileId, CancellationToken)

Finds matching entries from the files collection.

(Inherited from GridFSBucketTFileId.)

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(TFileId, GridFSDownloadOptions, CancellationToken)

Opens a Stream that can be used by the application to read data from a GridFS file.

(Inherited from GridFSBucketTFileId.)

Public method

OpenDownloadStream(BsonValue, GridFSDownloadOptions, CancellationToken)

Opens a Stream that can be used by the application to read data from a GridFS file.

Public method

OpenDownloadStreamAsync(TFileId, GridFSDownloadOptions, CancellationToken)

Opens a Stream that can be used by the application to read data from a GridFS file.

(Inherited from GridFSBucketTFileId.)

Public method

OpenDownloadStreamAsync(BsonValue, GridFSDownloadOptions, CancellationToken)

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.

(Inherited from GridFSBucketTFileId.)

Public method

OpenDownloadStreamByNameAsync

Opens a Stream that can be used by the application to read data from a GridFS file.

(Inherited from GridFSBucketTFileId.)

Public method

OpenUploadStream(String, GridFSUploadOptions, CancellationToken)

Opens a Stream that can be used by the application to write data to a GridFS file.

Public method

OpenUploadStream(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 method

OpenUploadStreamAsync(String, GridFSUploadOptions, CancellationToken)

Opens a Stream that can be used by the application to write data to a GridFS file.

Public method

OpenUploadStreamAsync(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 method

Rename(TFileId, String, CancellationToken)

Renames a GridFS file.

(Inherited from GridFSBucketTFileId.)

Public method

Rename(BsonValue, String, CancellationToken)

Renames a GridFS file.

Public method

RenameAsync(TFileId, String, CancellationToken)

Renames a GridFS file.

(Inherited from GridFSBucketTFileId.)

Public method

RenameAsync(BsonValue, String, CancellationToken)

Renames a GridFS file.

Public method

ToString

Returns a string that represents the current object.

(Inherited from Object.)

Public method

UploadFromBytes(String, Byte, GridFSUploadOptions, CancellationToken)

Uploads a file (or a new revision of a file) to GridFS.

Public method

UploadFromBytes(TFileId, String, Byte, GridFSUploadOptions, CancellationToken)

Uploads a file (or a new revision of a file) to GridFS.

(Inherited from GridFSBucketTFileId.)

Public method

UploadFromBytesAsync(String, Byte, GridFSUploadOptions, CancellationToken)

Uploads a file (or a new revision of a file) to GridFS.

Public method

UploadFromBytesAsync(TFileId, String, Byte, GridFSUploadOptions, CancellationToken)

Uploads a file (or a new revision of a file) to GridFS.

(Inherited from GridFSBucketTFileId.)

Public method

UploadFromStream(String, Stream, GridFSUploadOptions, CancellationToken)

Uploads a file (or a new revision of a file) to GridFS.

Public method

UploadFromStream(TFileId, String, Stream, GridFSUploadOptions, CancellationToken)

Uploads a file (or a new revision of a file) to GridFS.

(Inherited from GridFSBucketTFileId.)

Public method

UploadFromStreamAsync(String, Stream, GridFSUploadOptions, CancellationToken)

Uploads a file (or a new revision of a file) to GridFS.

Public method

UploadFromStreamAsync(TFileId, String, Stream, GridFSUploadOptions, CancellationToken)

Uploads a file (or a new revision of a file) to GridFS.

(Inherited from GridFSBucketTFileId.)