UploadProgressChangedEventArgs.BytesSent 屬性

定義

取得傳送的位元組數目。

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

屬性值

Int64 值,表示傳送的位元組數。

備註

將數據上傳至伺服器可能會導致從伺服器下載。 例如,假設您的應用程式將POST要求上傳至 Web 伺服器。 產生的下載將會更新 BytesReceivedTotalBytesToReceive

若要判斷發生傳輸的百分比,請使用 ProgressPercentage 屬性。 上傳完成時, ProgressPercentage 將會是50%。 下載完成時, ProgressPercentage 將會是 100%。

適用於