WebClient.DownloadStringCompleted イベント
アセンブリ: System (system.dll 内)

Dim instance As WebClient Dim handler As DownloadStringCompletedEventHandler AddHandler instance.DownloadStringCompleted, handler
public: event DownloadStringCompletedEventHandler^ DownloadStringCompleted { void add (DownloadStringCompletedEventHandler^ value); void remove (DownloadStringCompletedEventHandler^ value); }

このイベントは、リソースを文字列としてダウンロードする非同期操作が完了するたびに発生します。これらの操作は、DownloadStringAsync メソッドを呼び出すことによって開始されます。
DownloadStringCompletedEventHandler は、このイベントのデリゲートです。DownloadStringCompletedEventArgs クラスは、イベント ハンドラにイベント データを提供します。

このイベントのイベント ハンドラを設定するコード例を次に示します。
' Sample call : DownloadStringInBackground2 ("http:' www.contoso.com/GameScores.html") Public Shared Sub DownloadStringInBackground2(ByVal address As String) Dim client As WebClient = New WebClient() ' Specify that the DownloadStringCallback2 method gets called ' when the download completes. AddHandler client.DownloadStringCompleted, AddressOf DownloadStringCallback2 Dim uri as Uri = New Uri(address) client.DownloadStringAsync(uri) End Sub
// Sample call : DownloadStringInBackground2 ("http://www.contoso.com/GameScores.html"); public static void DownloadStringInBackground2 (string address) { WebClient client = new WebClient (); Uri uri = new Uri(address); // Specify that the DownloadStringCallback2 method gets called // when the download completes. client.DownloadStringCompleted += new DownloadStringCompletedEventHandler (DownloadStringCallback2); client.DownloadStringAsync (uri); }

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に収録されているすべての辞書からWebClient.DownloadStringCompleted イベントを検索する場合は、下記のリンクをクリックしてください。

- WebClient.DownloadStringCompleted イベントのページへのリンク