System.Net.UploadProgressChangedEventArgs.BytesSent Property

Gets the number of bytes sent.

Syntax

public long BytesSent { get; }

Value

Documentation for this section has not yet been entered.

Remarks

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