Mono Class Library: System.Net.HttpWebResponse Overview | MembersSystem.Net.HttpWebResponse.Close Method |
Closes the response stream. [Edit]
|
The HttpWebResponse.Close method closes the response stream and releases the connection to the Internet resource for reuse by other requests.
Note:[Edit]Call either the System.IO.Stream.Close or HttpWebResponse.Close method to close the stream and release the connection for reuse. It is not necessary to call both System.IO.Stream.Close and HttpWebResponse.Close , but doing so does not cause an error. Failure to close the stream might cause an application to run out of connections.
This method overrides WebResponse.Close.
Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0