Share via


GetResponseStream Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

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

Syntax

'Declaration
Public Overridable Function GetResponseStream As Stream
public virtual Stream GetResponseStream()
public:
virtual Stream^ GetResponseStream()
abstract GetResponseStream : unit -> Stream 
override GetResponseStream : unit -> Stream 
public function GetResponseStream() : Stream

Return Value

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

Remarks

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

.NET Framework Security

See Also

Reference

WebResponse Class

System.Net Namespace