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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DownloadStringCompletedEventArgs プロパティ

名前 | 説明 | |
---|---|---|
![]() | Cancelled | 非同期操作がキャンセルされたかどうかを示す値を取得します。 ( AsyncCompletedEventArgs から継承されます。) |
![]() | Error | 非同期操作中に発生したエラーを示す値を取得します。 ( AsyncCompletedEventArgs から継承されます。) |
![]() | Result | DownloadStringAsync メソッドによってダウンロードされたデータを取得します。 |
![]() | UserState | 非同期タスクの一意の識別子を取得します。 ( AsyncCompletedEventArgs から継承されます。) |

DownloadStringCompletedEventArgs メソッド

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |
![]() | RaiseExceptionIfNecessary | 非同期操作が失敗した場合は、ユーザー指定の例外を発生させます。 ( AsyncCompletedEventArgs から継承されます。) |

DownloadStringCompletedEventArgs メンバ
DownloadStringCompleted イベントのデータを提供します。
DownloadStringCompletedEventArgs データ型で公開されるメンバを以下の表に示します。

名前 | 説明 | |
---|---|---|
![]() | Cancelled | 非同期操作がキャンセルされたかどうかを示す値を取得します。(AsyncCompletedEventArgs から継承されます。) |
![]() | Error | 非同期操作中に発生したエラーを示す値を取得します。(AsyncCompletedEventArgs から継承されます。) |
![]() | Result | DownloadStringAsync メソッドによってダウンロードされたデータを取得します。 |
![]() | UserState | 非同期タスクの一意の識別子を取得します。(AsyncCompletedEventArgs から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |
![]() | RaiseExceptionIfNecessary | 非同期操作が失敗した場合は、ユーザー指定の例外を発生させます。 (AsyncCompletedEventArgs から継承されます。) |

Weblioに収録されているすべての辞書からDownloadStringCompletedEventArgsを検索する場合は、下記のリンクをクリックしてください。

- DownloadStringCompletedEventArgsのページへのリンク