System.Net.FileWebResponse.Close Method

Closes the response stream.

Syntax

public override void Close ()

Remarks

The FileWebResponse.Close method cleans up the resources used by a System.Net.FileWebResponse and closes the response stream by calling the System.IO.Stream.Close method.

Note:

The response stream must be closed to avoid running out of system resources. You can closes the response stream by calling either System.IO.Stream.Close or FileWebResponse.Close

Requirements

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