DownloadStringCompletedEventArgs クラス
アセンブリ: System (system.dll 内)



' 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); }
Public Shared Sub DownloadStringCallback2(ByVal sender As Object, ByVal e As DownloadStringCompletedEventArgs) ' If the request was not canceled and did not throw ' an exception, display the resource. If e.Cancelled = False AndAlso e.Error Is Nothing Then Dim textString As String = CStr(e.Result) Console.WriteLine(textString) End If End Sub
public static void DownloadStringCallback2 (Object sender, DownloadStringCompletedEventArgs e) { // If the request was not canceled and did not throw // an exception, display the resource. if (!e.Cancelled && e.Error == null) { string textString = (string)e.Result; Console.WriteLine (textString); } }

System.EventArgs
System.ComponentModel.AsyncCompletedEventArgs
System.Net.DownloadStringCompletedEventArgs


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

- DownloadStringCompletedEventArgs クラスのページへのリンク