Gets a readable stream that contains data downloaded by a DownloadDataAsync method.
Assembly: System (in System.dll)
You should check the Error and Cancelled properties before using the data that is returned by this property. If the Error property's value is an Exception object or the Cancelled property's value is true, the asynchronous operation did not complete correctly and the property's value will not be valid.
The following code example uses the stream returned by this property.
Private Shared Sub OpenReadCallback2(ByVal sender As Object, ByVal e As OpenReadCompletedEventArgs) Dim reply As Stream = Nothing Dim s As StreamReader = Nothing Try reply = CType(e.Result, Stream) s = New StreamReader(reply) Console.WriteLine(s.ReadToEnd()) Finally If Not s Is Nothing Then s.Close() End If If Not reply Is Nothing Then reply.Close() End If End Try End Sub