UploadProgressChangedEventArgs.BytesSent 属性
定义
获取已发送的字节数。Gets the number of bytes sent.
public:
property long BytesSent { long get(); };
public long BytesSent { get; }
member this.BytesSent : int64
Public ReadOnly Property BytesSent As Long
属性值
一个指示发送的字节数的 Int64 值。An Int64 value that indicates the number of bytes sent.
注解
将数据上传到服务器可能会导致从服务器下载。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. 生成的下载将更新 BytesReceived 和 TotalBytesToReceive 。The 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%.