Mono Class Library: System.Net.WebResponse Overview | Members

System.Net.WebResponse.GetResponseStream Method

Returns a System.IO.Stream that contains data from the current host. [Edit]

public virtual System.IO.Stream GetResponseStream ()

Returns

A System.IO.Stream for reading data from the current host. [Edit]

Exceptions

TypeReason
NotSupportedExceptionThis method is not implemented in the derived class. [Edit]

Remarks

Operation
This method is required to return a System.IO.Stream from the host specified by the WebResponse.ResponseUri property of the current instance.

This method throws NotSupportedException.

Note to Inheritors
This method is required to be overridden by classes that inherit from System.Net.WebResponse.

Usage
Use this method to open a connection to the current host. To close the stream when it is no longer needed, in order to prevent the exhaustion of system resources, invoke either the System.IO.Stream.Close or WebResponse.Close methods.

[Edit]

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0