Export (0) Print
Expand All

WebResponse.GetResponseStream Method

When overridden in a descendant class, returns the data stream from the Internet resource.

Namespace:  System.Net
Assembly:  System.Net (in System.Net.dll)

public abstract Stream GetResponseStream()

Return Value

Type: System.IO.Stream
An instance of the Stream class for reading data from the Internet resource.

ExceptionCondition
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.

NoteNote:

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

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft