Class FileEntity
Inherit this base class in order to create your own File Entities
Implements
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: MongoDB.Entities
Assembly: MongoDB.Entities.dll
Syntax
public abstract class FileEntity : Entity, IEntity
Properties
ChunkCount
The number of chunks that have been created so far
Declaration
[BsonElement]
public int ChunkCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
Data
Access the DataStreamer class for uploading and downloading data
Declaration
public DataStreamer Data { get; }
Property Value
Type | Description |
---|---|
DataStreamer |
FileSize
The total amount of data in bytes that has been uploaded so far
Declaration
[BsonElement]
public long FileSize { get; }
Property Value
Type | Description |
---|---|
Int64 |
MD5
If this value is set, the uploaded data will be hashed and matched against this value. If the hash is not equal, an exception will be thrown by the UploadAsync() method.
Declaration
public string MD5 { get; set; }
Property Value
Type | Description |
---|---|
String |
UploadSuccessful
Returns true only when all the chunks have been stored successfully in mongodb
Declaration
[BsonElement]
public bool UploadSuccessful { get; }
Property Value
Type | Description |
---|---|
Boolean |