49 lines
1.6 KiB
C#
49 lines
1.6 KiB
C#
using System;
|
|
using System.ComponentModel;
|
|
|
|
namespace System.Net
|
|
{
|
|
/// <summary>Provides data for the <see cref="E:System.Net.WebClient.DownloadProgressChanged" /> event of a <see cref="T:System.Net.WebClient" />.</summary>
|
|
// Token: 0x02000214 RID: 532
|
|
public class DownloadProgressChangedEventArgs : global::System.ComponentModel.ProgressChangedEventArgs
|
|
{
|
|
// Token: 0x06001222 RID: 4642 RVA: 0x00036528 File Offset: 0x00034728
|
|
internal DownloadProgressChangedEventArgs(long bytesReceived, long totalBytesToReceive, object userState)
|
|
: base((totalBytesToReceive == -1L) ? 0 : ((int)(bytesReceived * 100L / totalBytesToReceive)), userState)
|
|
{
|
|
this.received = bytesReceived;
|
|
this.total = totalBytesToReceive;
|
|
}
|
|
|
|
/// <summary>Gets the number of bytes received.</summary>
|
|
/// <returns>An <see cref="T:System.Int64" /> value that indicates the number of bytes received.</returns>
|
|
// Token: 0x170005EC RID: 1516
|
|
// (get) Token: 0x06001223 RID: 4643 RVA: 0x00036558 File Offset: 0x00034758
|
|
public long BytesReceived
|
|
{
|
|
get
|
|
{
|
|
return this.received;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the total number of bytes in a <see cref="T:System.Net.WebClient" /> data download operation.</summary>
|
|
/// <returns>An <see cref="T:System.Int64" /> value that indicates the number of bytes that will be received.</returns>
|
|
// Token: 0x170005ED RID: 1517
|
|
// (get) Token: 0x06001224 RID: 4644 RVA: 0x00036560 File Offset: 0x00034760
|
|
public long TotalBytesToReceive
|
|
{
|
|
get
|
|
{
|
|
return this.total;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000FB1 RID: 4017
|
|
private long received;
|
|
|
|
// Token: 0x04000FB2 RID: 4018
|
|
private long total;
|
|
}
|
|
}
|