UploadProgressChangedEventArgs.TotalBytesToSend 属性
定义
获取要发送的总字节数。Gets the total number of bytes to send.
public:
property long TotalBytesToSend { long get(); };
public long TotalBytesToSend { get; }
member this.TotalBytesToSend : int64
Public ReadOnly Property TotalBytesToSend As Long
属性值
一个指示将要发送的字节数的 Int64 值。An Int64 value that indicates the number of bytes that will be sent.
注解
若要确定已发送的字节数,请使用 BytesSent 属性。To determine the number of bytes already sent, use the BytesSent property.
将数据上传到服务器可能会导致从服务器下载。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%.