Class DownloadProgressEventArgs
Fired when download makes progress. Last call has |done| == true.
public sealed record DownloadProgressEventArgs : EventArgs, IEquatable<EventArgs>, IEquatable<DownloadProgressEventArgs>
- Inheritance
-
EventArgsDownloadProgressEventArgs
- Implements
-
IEquatable<EventArgs>
- Inherited Members
-
EventArgs.ToString()EventArgs.GetHashCode()EventArgs.Equals(EventArgs)EventArgs.<Clone>$()EventArgs.BiDiEventArgs.AdditionalDataEventArgs.AdditionalMessageData
Constructors
DownloadProgressEventArgs(string, double, double, string, string?)
Fired when download makes progress. Last call has |done| == true.
public DownloadProgressEventArgs(string Guid, double TotalBytes, double ReceivedBytes, string State, string? FilePath = null)
Parameters
GuidstringGlobal unique identifier of the download.
TotalBytesdoubleTotal expected bytes to download.
ReceivedBytesdoubleTotal bytes received.
StatestringDownload status.
FilePathstringIf download is "completed", provides the path of the downloaded file. Depending on the platform, it is not guaranteed to be set, nor the file is guaranteed to exist.
Properties
FilePath
If download is "completed", provides the path of the downloaded file. Depending on the platform, it is not guaranteed to be set, nor the file is guaranteed to exist.
public string? FilePath { get; init; }
Property Value
Guid
Global unique identifier of the download.
public string Guid { get; init; }
Property Value
ReceivedBytes
Total bytes received.
public double ReceivedBytes { get; init; }
Property Value
State
Download status.
public string State { get; init; }
Property Value
TotalBytes
Total expected bytes to download.
public double TotalBytes { get; init; }