Class GridFSFileInfo

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver.GridFS

Assembly

MongoDB.Driver.dll

Represents information about a stored GridFS file (backed by a files collection document).

[BsonSerializer(typeof(GridFSFileInfoSerializer<>))]
public sealed class GridFSFileInfo<TFileId> : BsonDocumentBackedClass

Type Parameters

TFileId

The type of the file identifier.

Inheritance

GridFSFileInfo

Inherited Members

Constructors

GridFSFileInfo(BsonDocument, IGridFSFileInfoSerializer)

Initializes a new instance of the GridFSFileInfo class.

Properties

BackingDocument

Gets the backing document.

ChunkSizeBytes

Gets the size of a chunk.

Filename

Gets the filename.

Id

Gets the identifier.

Length

Gets the length.

Metadata

Gets the metadata.

UploadDateTime

Gets the upload date time.