System.Net.UploadProgressChangedEventArgs.TotalBytesToSend Property

Gets the total number of bytes to send.

Syntax

public long TotalBytesToSend { get; }

Value

Documentation for this section has not yet been entered.

Remarks

To determine the number of bytes already sent, use the UploadProgressChangedEventArgs.BytesSent property.

Uploading data to a server may result in a download from the server. For example, suppose your application uploads a POST request to a Web server. The resulting download will update UploadProgressChangedEventArgs.BytesReceived and UploadProgressChangedEventArgs.TotalBytesToReceive.

To determine what percentage of the transfer has occurred, use the System.ComponentModel.ProgressChangedEventArgs.ProgressPercentage property. When the upload is complete, System.ComponentModel.ProgressChangedEventArgs.ProgressPercentage will be 50%. When the download completes, System.ComponentModel.ProgressChangedEventArgs.ProgressPercentage will be 100%.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0