Class UploadProgressInfo

Represents Upload Progress Information.

Inheritance
System.Object
UploadProgressInfo
Implements
System.ICloneable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.FileUploader.Web
Assembly: Mediachase.FileUploader.dll
Version: 10.8.0
Syntax
public class UploadProgressInfo : ICloneable

Constructors

UploadProgressInfo()

Initializes a new instance of the UploadProgressInfo class.

Declaration
public UploadProgressInfo()

UploadProgressInfo(Guid)

Initializes a new instance of the UploadProgressInfo class.

Declaration
public UploadProgressInfo(Guid ProgressUid)
Parameters
Type Name Description
System.Guid ProgressUid

The progress uid.

UploadProgressInfo(Guid, Int32)

Initializes a new instance of the UploadProgressInfo class.

Declaration
public UploadProgressInfo(Guid ProgressUid, int BytesTotal)
Parameters
Type Name Description
System.Guid ProgressUid

The progress uid.

System.Int32 BytesTotal

The bytes total.

Properties

BytesReceived

Gets or sets the bytes received.

Declaration
public int BytesReceived { get; set; }
Property Value
Type Description
System.Int32

The bytes received.

BytesTotal

Gets or sets the bytes total.

Declaration
public int BytesTotal { get; set; }
Property Value
Type Description
System.Int32

The bytes total.

CurrentFileName

Gets or sets the name of the current file.

Declaration
public string CurrentFileName { get; set; }
Property Value
Type Description
System.String

The name of the current file.

EndUpload

Gets or sets the end upload.

Declaration
public DateTime EndUpload { get; set; }
Property Value
Type Description
System.DateTime

The end upload.

ErrorMessage

Gets or sets the error message.

Declaration
public string ErrorMessage { get; set; }
Property Value
Type Description
System.String

The error message.

EstimatedTime

Returns a value that represent the approximate time for an upload.

Declaration
public TimeSpan EstimatedTime { get; }
Property Value
Type Description
System.TimeSpan

LastModified

Gets or sets the last modified.

Declaration
public DateTime LastModified { get; set; }
Property Value
Type Description
System.DateTime

The last modified.

Progress

Returns a value that represent the percent complete.

Declaration
public int Progress { get; }
Property Value
Type Description
System.Int32
Remarks

This value calculates from the two fields BytesReceived and BytesTotal.

Progress = (this.BytesReceived * 100.0) /this.BytesTotal

ProgressUid

Gets or sets the progress uid.

Declaration
public Guid ProgressUid { get; set; }
Property Value
Type Description
System.Guid

The progress uid.

Result

Gets or sets the result.

Declaration
public UploadResult Result { get; set; }
Property Value
Type Description
UploadResult

The result.

StartUpload

Gets or sets the start upload.

Declaration
public DateTime StartUpload { get; set; }
Property Value
Type Description
System.DateTime

The start upload.

TimeRemaining

Returns a value that represent the approximate time remaining for an upload.

Declaration
public TimeSpan TimeRemaining { get; }
Property Value
Type Description
System.TimeSpan

TransferRate

Returns a value that represent the approximate transfer rate in byte/sec.

Declaration
public double TransferRate { get; }
Property Value
Type Description
System.Double

Methods

Clone()

Creates a new object that is a copy of the current instance.

Declaration
public object Clone()
Returns
Type Description
System.Object

A new object that is a copy of this instance.

Implements

System.ICloneable