DownloadProgressChangedEventArgs.TotalBytesToReceive プロパティ
メモ : このプロパティは、.NET Framework version 2.0 で新しく追加されたものです。
WebClient のデータのダウンロード操作の総バイト数を取得します。
名前空間: System.Net
アセンブリ: System (system.dll 内)
構文


DownloadProgressChanged イベントのハンドラを実装するコード例を次に示します。メソッドでこのプロパティの値を表示します。
Shared Sub UploadProgressCallback(ByVal sender As Object, ByVal e As UploadProgressChangedEventArgs) ' Displays the operation identifier, and the transfer progress. Console.WriteLine("{0} uploaded {1} of {2} bytes. {3} % complete...", _ CStr(e.UserState), e.BytesSent, e.TotalBytesToSend, e.ProgressPercentage) End Sub Shared Sub DownloadProgressCallback(ByVal sender As Object, ByVal e As DownloadProgressChangedEventArgs) ' Displays the operation identifier, and the transfer progress. Console.WriteLine("0} downloaded 1} of 2} bytes. 3} % complete...", _ CStr(e.UserState), e.BytesReceived, e.TotalBytesToReceive, e.ProgressPercentage) End Sub
static void UploadProgressCallback(object sender, UploadProgressChangedEventArgs e) { // Displays the operation identifier, and the transfer progress. Console.WriteLine("{0} uploaded {1} of {2} bytes. {3} % complete...", (string)e.UserState, e.BytesSent, e.TotalBytesToSend, e.ProgressPercentage); } static void DownloadProgressCallback(object sender, DownloadProgressChangedEventArgs e) { // Displays the operation identifier, and the transfer progress. Console.WriteLine("{0} downloaded {1} of {2} bytes. {3} % complete...", (string)e.UserState, e.BytesReceived, e.TotalBytesToReceive, e.ProgressPercentage); }

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からDownloadProgressChangedEventArgs.TotalBytesToReceive プロパティを検索する場合は、下記のリンクをクリックしてください。

- DownloadProgressChangedEventArgs.TotalBytesToReceive プロパティのページへのリンク