DownloadStringCompletedEventArgs.Result プロパティ
アセンブリ: System (system.dll 内)
構文ダウンロードされたデータが格納されている String。
解説このプロパティによって返されるデータを使用する前に、Error プロパティおよび Cancelled プロパティを確認する必要があります。Error プロパティの値が Exception オブジェクトであるか、Cancelled プロパティの値が true である場合は、非同期の操作が適切に完了していないため、Result プロパティの値は有効ではありません。
使用例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); } }
プラットフォーム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.Result プロパティを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からDownloadStringCompletedEventArgs.Result プロパティ
を検索
- DownloadStringCompletedEventArgs.Result プロパティのページへのリンク