WebResponse.GetResponseStream Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
When overridden in a descendant class, returns the data stream from the Internet resource.
Assembly: System.Net (in System.Net.dll)
Return Value
Type: System.IO.StreamAn instance of the Stream class for reading data from the Internet resource.
| Exception | Condition |
|---|---|
| NotSupportedException | Any attempt is made to access the method, when the method is not overridden in a descendant class. |
The GetResponseStream method returns the data stream from the Internet resource.
Note: |
|---|
The response stream must be closed to avoid running out of system resources. The response stream can be closed by calling Stream.Close or Close |
Note: