FtpWebResponse.Close Method ()

 

Frees the resources held by the response.

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

Public Overrides Sub Close

The Close method closes the data stream returned by the GetResponseStream method if the KeepAlive property is false. During the close, data might be sent to the server on the control connection.

System_CAPS_noteNote

This member outputs trace information when you enable network tracing in your application. For more information, see Network Tracing in the .NET Framework.

The following code example downloads data from a server, reads the data from the response stream, and then closes it.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: