DownloadProgressChangedEventArgs.TotalBytesToReceive Property


Gets the total number of bytes in a WebClient data download operation.

Namespace:   System.Net
Assembly:  System (in System.dll)

member TotalBytesToReceive : int64 with get

Property Value

Type: System.Int64

An Int64 value that indicates the number of bytes that will be received.

To determine the number of bytes already received, use the BytesReceived property.

To determine what percentage of the transfer has occurred, use the ProgressPercentage property.

The following code example shows an implementation of a handler for the DownloadProgressChanged event. The method displays the value of this property.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top