Class DownloadDirectoryProgressArgs
Encapsulates the information needed to provide
transfer progress to subscribers of the DownloadDirectory
event.
public class DownloadDirectoryProgressArgs : EventArgs
- Inheritance
-
DownloadDirectoryProgressArgs
- Inherited Members
Constructors
DownloadDirectoryProgressArgs(int, int, long, long, string, long, long)
Constructs a new instance of DownloadDirectoryProgressArgs.
public DownloadDirectoryProgressArgs(int numberOfFilesDownloaded, int totalNumberOfFiles, long transferredBytes, long totalBytes, string currentFile, long transferredBytesForCurrentFile, long totalNumberOfBytesForCurrentFile)
Parameters
numberOfFilesDownloadedintThe number of files downloaded.
totalNumberOfFilesintThe total number of files to download.
transferredByteslongThe bytes transferred across all files being downloaded.
totalByteslongThe total number of bytes across all files being downloaded.
currentFilestringThe current file being downloaded.
transferredBytesForCurrentFilelongThe number of transferred bytes for the current file.
totalNumberOfBytesForCurrentFilelongThe size of the current file in bytes.
DownloadDirectoryProgressArgs(int, int, string, long, long)
Constructs a new instance of DownloadDirectoryProgressArgs.
public DownloadDirectoryProgressArgs(int numberOfFilesDownloaded, int totalNumberOfFiles, string currentFile, long transferredBytesForCurrentFile, long totalNumberOfBytesForCurrentFile)
Parameters
numberOfFilesDownloadedintThe number of files downloaded.
totalNumberOfFilesintThe total number of files to download.
currentFilestringThe current file being downloaded
transferredBytesForCurrentFilelongThe number of transferred bytes for the current file.
totalNumberOfBytesForCurrentFilelongThe size of the current file in bytes.
Properties
CurrentFile
Gets or sets the current file being downloaded.
public string CurrentFile { get; set; }
Property Value
- string
The current file being downloaded.
NumberOfFilesDownloaded
Gets or sets the number of files downloaded so far.
public int NumberOfFilesDownloaded { get; set; }
Property Value
- int
The number of files downloaded.
TotalBytes
Gets or sets the total number of bytes across all files being downloaded.
public long TotalBytes { get; set; }
Property Value
- long
The total number of bytes across all files being downloaded.
TotalNumberOfBytesForCurrentFile
Gets or sets the total number of bytes for the current file.
public long TotalNumberOfBytesForCurrentFile { get; set; }
Property Value
- long
The total number of bytes for the current file.
TotalNumberOfFiles
Gets or sets the total number of files.
public int TotalNumberOfFiles { get; set; }
Property Value
- int
The total number of files.
TransferredBytes
Gets or sets the bytes transferred across all files being downloaded.
public long TransferredBytes { get; set; }
Property Value
- long
The bytes transferred across all files being downloaded.
TransferredBytesForCurrentFile
Gets or sets the transferred bytes for the current file.
public long TransferredBytesForCurrentFile { get; set; }
Property Value
- long
The transferred bytes for the current file.
Methods
ToString()
The string representation of this instance of DownloadDirectoryProgressArgs.
public override string ToString()
Returns
- string
The string representation of this instance of DownloadDirectoryProgressArgs.