UploadProgressChangedEventArgs.BytesReceived 属性

定义

获取收到的字节数。Gets the number of bytes received.

public:
 property long BytesReceived { long get(); };
public long BytesReceived { get; }
member this.BytesReceived : int64
Public ReadOnly Property BytesReceived As Long

属性值

Int64

一个指示收到的字节数的 Int64 值。An Int64 value that indicates the number of bytes received.

注解

将数据上传到服务器可能会导致从服务器下载。Uploading data to a server may result in a download from the server. 例如,假设应用程序将 POST 请求上传到 Web 服务器。For example, suppose your application uploads a POST request to a Web server. 生成的下载将更新 BytesReceivedTotalBytesToReceiveThe resulting download will update BytesReceived and TotalBytesToReceive.

若要确定发生传输的百分比,请使用 ProgressPercentage 属性。To determine what percentage of the transfer has occurred, use the ProgressPercentage property. 上传完成后, ProgressPercentage 将为50%。When the upload is complete, ProgressPercentage will be 50%. 下载完成时, ProgressPercentage 将为100%。When the download completes, ProgressPercentage will be 100%.

适用于