UploadProgressChangedEventArgs.TotalBytesToReceive 속성

정의

WebClient 데이터 업로드 작업의 총 바이트 수를 가져옵니다.

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

속성 값

받을 바이트 수를 나타내는 Int64 값입니다.

설명

이미 받은 바이트 수를 확인하려면 속성을 사용합니다 BytesReceived .

서버에 데이터를 업로드하면 서버에서 다운로드가 발생할 수 있습니다. 예를 들어, 애플리케이션 웹 서버에 POST 요청을 업로드 합니다. 결과 다운로드는 및 를 업데이트 BytesReceived 합니다 TotalBytesToReceive.

전송이 발생한 비율을 확인하려면 속성을 사용합니다 ProgressPercentage . 업로드가 완료되면 ProgressPercentage 50%가 됩니다. 다운로드가 완료되면 ProgressPercentage 100%가 됩니다.

적용 대상