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
numberOfFilesDownloaded
intThe number of files downloaded.
totalNumberOfFiles
intThe total number of files to download.
transferredBytes
longThe bytes transferred across all files being downloaded.
totalBytes
longThe total number of bytes across all files being downloaded.
currentFile
stringThe current file being downloaded.
transferredBytesForCurrentFile
longThe number of transferred bytes for the current file.
totalNumberOfBytesForCurrentFile
longThe 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
numberOfFilesDownloaded
intThe number of files downloaded.
totalNumberOfFiles
intThe total number of files to download.
currentFile
stringThe current file being downloaded
transferredBytesForCurrentFile
longThe number of transferred bytes for the current file.
totalNumberOfBytesForCurrentFile
longThe 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.